-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creates a lot of folders on mac #5
Comments
@nathraQ that's weird. Because I just tested with |
@nathraQ any updates ? |
I got another laptop today and didn't install the package globally - I got the same problem. The code which creates the directory uses process.cwd() which returns the current working directory. If the package is not installed globally you have to use "node node_modules/angular2-dependencies-graph/bin" to run the tool - the working directory is then the directory of the angular project, not the directory of the ng2-dg project. Using I created a pull request. I didn't understand why there is a forEach loop to create the directory, thats why I removed the loop in the second commit. |
thanks @bitsmag I'll check your PR this WE. |
fix merged in #10 |
Running
ng2-dg --file bootstrap.ts
with any project (tried it e.g. with AngularShowcase/angular2-sample-app) creates empty folders named a,b,c and so on.I'm using it with osx version 10.11.3 and node version v5.6.0
The text was updated successfully, but these errors were encountered: