https://github.com/cdaringe/snyk-resolve-deps-dep-type-bug
https://github.com/cdaringe/snyk-resolve-deps-dep-type-bug
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cdaringe/snyk-resolve-deps-dep-type-bug
- Owner: cdaringe
- Created: 2016-11-21T23:43:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:59:39.000Z (over 2 years ago)
- Last Synced: 2025-09-01T01:55:48.267Z (11 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# problem statement
consider this tree:
```
$ tree _node_modules/
├── a
│ ├── index.js
│ └── package.json // 0.0.2
└── b
├── index.js
├── node_modules
│ └── a
│ ├── index.js
│ └── package.json // 0.0.1
└── package.json
```
now consider the package.json. note that `b` is a `devDependency`. if `b` is a dev dep, `a@0.0.1` should also be a devDep.
snyk-resolve-deps reports a@0.0.1 as `prod`, even though `devDep` `b` imports it.
## reproduce
- clone
- do _not_ `npm install`. instead,
- `npm install snyk-resolve-deps`
- `cp -r _node_modules/* node_modules/`
this puts our dummy sim into node_modules for demonstration purposes
- run `node index.js`