lucalanca / grunt-angular-architecture-graph

Generate modules dependencies graph in .dot format
MIT License
190 stars 13 forks source link

"npm install" creates package.json under node_modules, breaks shrinkwrap #21

Open peacechen opened 8 years ago

peacechen commented 8 years ago

Running this command: npm install grunt-angular-architecture-graph

Creates a package.json inside of the node_modules directory. This looks like a generated file as it contains the local installation path. Not sure how this gets created, but the extraneous package.json breaks npm shrinkwrap.

I've tested this with npm 3.x (flattens node_modules) and npm 1.4x (doesn't flatten) in a completely empty directory. In both cases a package.json is created directly under grunt-angular-architecture-graph/node_modules.

peacechen commented 8 years ago

Clarification: grunt-angular-architecture-graph/package.json appears to be generated, containing the local filesystem path.

grunt-angular-architecture-graph/node_modules/package.json does not appear to be generated, but the version in it is "0.2.1". This is odd because the other one references 0,2,6.