Skip to content

Commit

Permalink
fix(@angular/cli): fix directory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitarora committed May 24, 2017
1 parent 78d1c77 commit 5d9d571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@angular/cli/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const NewCommand = Command.extend({
commandOptions.skipGit = true;
}

const directoryName = path.join(process.cwd(),
const directoryName = path.join(process.env.PWD || process.cwd(),
commandOptions.directory ? commandOptions.directory : packageName);

const initCommand = new InitCommand({
Expand Down

0 comments on commit 5d9d571

Please sign in to comment.