[BUG] Overrides are not applied correctly with workspaces
Open
@owlstronaut is already working on this.
Since Mar 20, 2025.
Bug
config:overrides
Needs Triage
Release 8.x
- Dominant language
- JavaScript
- Stars
- 10.1k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
When overrides are applied to a project with workspaces, they do not consistently apply.
Expected Behavior
Overrides should apply regardless of the usage of workspaces.
Steps To Reproduce
git clone https://github.com/defencedigital/mod-uk-design-system.git
cd mod-uk-design-system
git switch spike/npm-v8-2
npm install
npm ls trim
trim should be at version 0.0.3, while it is stuck at 0.0.1
Environment
- npm: 8.7.0
- Node.js: 16.15.0
- OS Name: OSX Monterey
- System Model Name: 13" M1 MacBook Pro
- npm config:
; copy and paste output from `npm config ls` here
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.