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
My apologies, I debugged it more and found that the issue required more specific conditions to dupe and forgot to update this bug report. This is specifically if a directory above contains a package.json file. In my case, I was building a group of modules with lerna, where one was an Angular app. Angular CLI 1.0.0 would create the app at the top-level next to package.json rather than in the directory specified by -dir. I have not attempted with 1.0.1 yet, so this may be fixed (I'll report back when I have a chance to test)
Activity
[-]`--dir` flag not being respected[/-][+]`-dir` flag not being respected[/+]delasteve commentedon Apr 27, 2017
I was unable to reproduce this using
Using
ng new -dir foo someapp, when Ilsed the parent directory, I gotberwyn commentedon Apr 27, 2017
My apologies, I debugged it more and found that the issue required more specific conditions to dupe and forgot to update this bug report. This is specifically if a directory above contains a
package.jsonfile. In my case, I was building a group of modules with lerna, where one was an Angular app. Angular CLI 1.0.0 would create the app at the top-level next topackage.jsonrather than in the directory specified by-dir. I have not attempted with 1.0.1 yet, so this may be fixed (I'll report back when I have a chance to test)In other words, my expected setup was
resulting in
but instead I got
filipesilva commentedon May 4, 2017
I actually thought we fixed this already in #4901. Maybe something is broken.
hansl commentedon Jan 14, 2019
This has been fixed a long time ago, never marked. If this still happens please create a new issue so we can follow up.
angular-automatic-lock-bot commentedon Sep 9, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.