How to update a transitive dependency with deno install?
#26662
Unanswered
nicolo-ribaudo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I think there might be no way besides removing the lock file are the moment. We got a PR cooking that would allow to do that (#26219) that we want to ship in Deno v2.1. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At https://github.com/nicolo-ribaudo/local-highlight-registry/tree/efd1ff4fdc2091a7fc5bc6901743c2461037573b, I had to add
"rollup": "npm:[email protected]"to mydeno.jsoncbecause I am using Vite, and[email protected]had a bug that made it impossible to install it with Deno.That Rollup bug has been fixed, and now I would like to update Rollup to the fixed version. I don't want to simply delete the lockfile, because I don't want to update other unrelated dependencies.
How do I do it?
I tried:
"rollup": "npm:[email protected]"fromdeno.jsoncand runningdeno install. This has no effect.deno install npm:rollup. This replacednpm:[email protected]withnpm:rollup@^4.24.3in mydeno.jsoncfile. However, they are both present in the lockfile and the Vite entry in the lockfile has been updated to explicilty use the old version instead of the new onedeno install npm:rollupanddeno uninstall npm:rollup. Same result as above, except that (as expected) I don't have Rollup anymore in mydeno.jsoncfiledeno.jsoncand fromdeno.lock'snpmobject and runningdeno install. It fails with:Beta Was this translation helpful? Give feedback.
All reactions