Remove NPM Dependency #114
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
andylockran/spectral-aws-apigateway-ruleset#114
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
spectral-aws-apigateway-ruleset@3.0.1listsnpmas a production dependency:However,
npmis not imported or referenced anywhere in the package's source files. This appears to be an accidental inclusion.Impact
Because
npmships with a large set of bundled sub-dependencies, this single entry causes ~80 extra entries to appear in the users lock file (all thenode_modules/npm/node_modules/*entries). Depending on the package manager used, they even get physically installed on disk. When using Yarn or PNPM this is undesirable. They also bloat the lock file and appear as dependencies in security audits, increasing noise and scan time.Steps to Reproduce
Expected Behaviour
npmshould not be listed as a dependency at all. If it is needed for internal scripts (e.g. release tooling), it should be moved todevDependencies.Suggested Fix
Remove
"npm": "^11.5.2"from the dependencies block inpackage.json.I've now removed it. Releasing imminently.