fix(install): cleanup `node_modules` folder on install
by dsherret
·
Feb 06, 2026 at 19:40 UTC
·
scan-d7bee555ba779c5a
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Critical (85%)
Clean up the `node_modules` folder during `deno install/add/remove`.
cli/factory.rs and libs/npm_installer/local.rs add `clean_on_install` flag.
PR description states it's only for install/add/remove.
Cleanup implemented conditional to install-related operations only.
Trusted contributor with 1737 merged PRs. maintains 166 public repositories. has 2061 followers. unfamiliar with 5 files being modified.
Review 5 high-priority file(s)
libs/npm_cache/fs_util.rs
+111
111 lines changed; Source code
libs/npm_installer/bin_entries.rs
+137
137 lines changed; Source code
libs/npm_installer/local.rs
+446
446 lines changed; Source code
cli/tools/clean.rs
+90
90 lines changed; Source code
libs/npm_installer/fs.rs
+88
88 lines changed; Source code
cli/util/fs.rs
+55
55 lines changed; Source code
cli/factory.rs
+49
Source code
libs/npm_installer/lib.rs
+30
Source code
libs/npm_installer/bin_entries/windows_shim.rs
+18
Source code
cli/npm.rs
+8
Source code
+20 more files
173
minutes to review
extensive
effort level
none
staleness risk
Schedule dedicated review time; consider pair review
Critical risk level requires changes before approval
Consider breaking into smaller PRs
Why is security_scan_clean missing? Consider adding this check.
Why is coverage_maintained missing? Consider adding this check.
Verify new dependencies: cowsay, chalk