Skip to content

Commit 5d9d571

Browse files
committed
fix(@angular/cli): fix directory issue
1 parent 78d1c77 commit 5d9d571

File tree

1 file changed

+1
-1
lines changed
  • packages/@angular/cli/commands

1 file changed

+1
-1
lines changed

packages/@angular/cli/commands/new.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const NewCommand = Command.extend({
138138
commandOptions.skipGit = true;
139139
}
140140

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

144144
const initCommand = new InitCommand({

0 commit comments

Comments
 (0)