-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Document how to replace a dependency with a fork with overrides. #4909
Comments
Any update on this in the doc? FWIW, this seems to work for me, found it on a different Github repo being used: Note: it does not work, at least in my case, if I try limiting the version of jsonlint being matched, it only works if it's open and freeform version to override. "overrides": {
"jsonlint": "npm:@prantlf/jsonlint@^11.6.0"
}, |
Ran into the same confusion. In my case I needed to swap out
|
One more example in case it helps out anyone else... this successfully targets a specific branch ("modernize" in this case) from a GitHub fork that's not published to NPM: "overrides": {
"node-jq": {
"bin-build": "github:brave/bin-build#modernize"
}
} |
Is there a way to override with a local file, rather than a package published to the npm registry or GitHub? |
I`m interested on an answer for the question above too. |
ditto this "dependency with a fork" sounds pretty clear to me. So... HOW? |
Is there an existing issue for this?
This is a CLI Docs Enhancement, not another kind of Docs Enhancement.
Description of Problem
This sounds like you can replace
foo@1.0.0
with@private/foo-fork@1.0.0
but the examples and documentation do not explain how to.Potential Solution
If this is supported please document it, if it isn't please remove the references to replacing an existing dependency with a fork
Docs URL
https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides
The text was updated successfully, but these errors were encountered: