Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Sep 24, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

liamcmitchell and others added 30 commits September 23, 2025 14:02
Discovered while investigating #8535

`npm install --omit` output doesn't show any removed packages.

This PR moves the omit calc into the diff calc so omits are handled like
other resolution logic.

Improvements:
* we see removals in CLI output
* _createSparseTree no longer creates dirs that will only be cleaned
later
* no duplicate filterSet calculation, omit is calculated right after
filters

I removed the trashList check on reifying node. Code coverage complained
that this branch wasn't hit in any tests so I assume it should always be
empty.

I think this uncovered one bug with workspaces in the test `workspaces >
reify workspaces omit dev dependencies > workspaces only`. From my
understanding of the
[docs](https://docs.npmjs.com/cli/v11/commands/npm-install#include-workspace-root),
only workspace `a` should be touched, `root` and workspace `b` should
still have their packages. I updated the test.

Co-authored-by: Liam Mitchell <liam.mitchell@mendix.com>
@pull pull bot locked and limited conversation to collaborators Sep 24, 2025
@pull pull bot added the ⤵️ pull label Sep 24, 2025
@pull pull bot merged commit 849dcb6 into LadyK-21:latest Sep 24, 2025
11 of 14 checks passed
@LadyK-21
Copy link
Owner

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants