You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I have also got bitten by #1079 (summary: if you do ng new xxx in an empty folder, and the parent folder has a package.json, the new project will be created in the parent folder).
I fail to see a realistic user case where one may need that. It causes only confusion (if you look at the original bug it has already 5 duplicates, showing that it is a common enough problem). And as far as I can see, new doesn't actually fetch any information from the package.json, so I'm at a loss to explain why it is actually looking for it. I think it all stems from the packageJson var in ng,
but I think ng new should disregard it since not relevant in that case.
The text was updated successfully, but these errors were encountered:
gotofritz
changed the title
Proposal: Stop ng new going up directories in search for package.json
Proposal: Stop ng new going up one directory in search for package.json
Jan 25, 2017
I agree that looking for a package.json does not make sense for ng new. If you have a package.json somewhere up the tree, that does not mean you intend to create the new project there. Usually, you intend to create a new project right where you are.
Hi. I have also got bitten by #1079 (summary: if you do
ng new xxx
in an empty folder, and the parent folder has a package.json, the new project will be created in the parent folder).I fail to see a realistic user case where one may need that. It causes only confusion (if you look at the original bug it has already 5 duplicates, showing that it is a common enough problem). And as far as I can see,
new
doesn't actually fetch any information from the package.json, so I'm at a loss to explain why it is actually looking for it. I think it all stems from thepackageJson
var in ng,angular-cli/packages/angular-cli/bin/ng
Line 8 in 224250c
ng new
should disregard it since not relevant in that case.The text was updated successfully, but these errors were encountered: