Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Use posix path for in-repo-addons in package.json #3869

Merged
merged 1 commit into from
May 12, 2015

Conversation

trabus
Copy link
Contributor

@trabus trabus commented Apr 10, 2015

Fixes #3847 using a posix style path in package.json for in-repo-addons for Windows (and all other environments).

@trabus trabus force-pushed the in-addon-npm-path branch 2 times, most recently from 6427ed7 to 0751b84 Compare May 7, 2015 17:00
@trabus trabus added the bug label May 7, 2015
@trabus trabus added this to the v0.2.4 milestone May 7, 2015
@@ -22,7 +22,7 @@ module.exports = {
var packagePath = path.join(this.project.root, 'package.json');
var contents = JSON.parse(fs.readFileSync(packagePath, { encoding: 'utf8' }));
var name = stringUtil.dasherize(options.entity.name);
var newPath = path.join('lib', name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trabus probably we can still use path, but make explicit that we want posix path.posix.join.

@abuiles
Copy link
Member

abuiles commented May 12, 2015

@trabus your commit will be applied through #4056

abuiles added a commit that referenced this pull request May 12, 2015
[BUGFIX] Use posix path for in-repo-addons in package.json
@abuiles abuiles merged commit 948fe8e into ember-cli:master May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In-repo-addon generated on Windows is not being used on *nix based operating systems.
4 participants