You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use a new version of the dependency, but it is dependent on another dependency package, I have to overwrite the version that the existing dependency package depends on
Describe the solution you'd like
Using the $ method of npm will not make the user feel unfamiliar, he can directly refer to the version of the existing dependent package like a variable
without breaking the original way
Describe the drawbacks of your solution
When taking out overrides, iterate through all the keys to see if the value starts with $, if so, find out whether the version of the key exists in the existing dependencies or devDependencies, and replace the reference if it exists, and dependencies take precedence
Describe alternatives you've considered
I can’t think of a better alternative at the moment, if possible, I’ll check out npm or yarn
The text was updated successfully, but these errors were encountered:
How would this work in a workspace? In a workspace you may only describe overrides in the root package.json. And they influence all projects in the workspace. So, in this references you will only be able to use the direct dependencies that are in the root package.json.
How would this work in a workspace? In a workspace you may only describe overrides in the root package.json. And they influence all projects in the workspace. So, in this references you will only be able to use the direct dependencies that are in the root package.json.
Describe the user story
I want to use a new version of the dependency, but it is dependent on another dependency package, I have to overwrite the version that the existing dependency package depends on
Describe the solution you'd like
Using the $ method of npm will not make the user feel unfamiliar, he can directly refer to the version of the existing dependent package like a variable
without breaking the original way
Describe the drawbacks of your solution
When taking out overrides, iterate through all the keys to see if the value starts with $, if so, find out whether the version of the key exists in the existing dependencies or devDependencies, and replace the reference if it exists, and dependencies take precedence
Describe alternatives you've considered
I can’t think of a better alternative at the moment, if possible, I’ll check out npm or yarn
The text was updated successfully, but these errors were encountered: