We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d1c77 commit 5d9d571Copy full SHA for 5d9d571
packages/@angular/cli/commands/new.ts
@@ -138,7 +138,7 @@ const NewCommand = Command.extend({
138
commandOptions.skipGit = true;
139
}
140
141
- const directoryName = path.join(process.cwd(),
+ const directoryName = path.join(process.env.PWD || process.cwd(),
142
commandOptions.directory ? commandOptions.directory : packageName);
143
144
const initCommand = new InitCommand({
0 commit comments