-
Notifications
You must be signed in to change notification settings - Fork 332
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
Deno imports compatibility? #1267
Comments
Hi, thanks for the suggestion. I added basic support and published to Please try it out at your convenience and let me know how it works :). |
Just tried version ❯ ncu
Using deno
Checking /Users/me/cdk8s-demo/deno.json
[====================] 2/2 100%
constructs npm:[email protected] → 10.1.245
Run ncu -u to upgrade deno.json Couple of items.
❯ ncu
Using deno
Upgrading /Users/me/cdk8s-demo/deno.json
[====================] 2/2 100%
constructs npm:[email protected] → 10.1.245
Run deno install to install new versions.
❯ deno install
error: The following required arguments were not provided:
<cmd>...
USAGE:
deno install [OPTIONS] <cmd>...
For more information try --help
❯ deno install --help
deno-install
Installs a script as an executable in the installation root's bin directory. I think correct usage is maybe this. ❯ deno cache npm:[email protected] # worked
❯ deno cache npm:constructs # didn't work |
Just tried multiple package upgrade. ❯ ncu
Using deno
Checking /Users/me/cdk8s-demo/deno.json
[====================] 2/2 100%
cdk8s npm:[email protected] → 2.6.44
constructs npm:[email protected] → 10.1.245
Run ncu -u to upgrade deno.json ❯ ncu -u
Using deno
Upgrading /Users/me/cdk8s-demo/deno.json
[====================] 2/2 100%
cdk8s npm:[email protected] → 2.6.44
constructs npm:[email protected] → 10.1.245
Run deno install to install new versions. Multiple package upgrade worked as expected. deno cache npm:[email protected] npm:[email protected] |
Is |
I mean it's equivalent of
❯ deno cache
error: The following required arguments were not provided:
<file>...
USAGE:
deno cache [OPTIONS] <file>...
For more information try --help
This doesn't download the dependencies automatically. But Deno will download necessary dependencies on the next Suggesting |
The cheat sheet says that it's not necessary:
Yes, thanks, I meant |
Sure, makes sense. I tend to prefer the most minimal output possible, so if it's not strictly necessary I think I will omit it. Plus that's one less command that the user needs to enter. |
Oops I edited my message 😆 Yeah I agree with you. :) |
Added jsonc support in Edit: And removed the erroneous install hint in |
Just tested out the latest release, looks like you nailed it. Thank you. |
npm-check-updates
node >= 14.14
Hi, I'm a long time ncu user, love it. Recently I started working on a new project with Deno. Looks like Deno supports npm modules via imports configuration. Example
deno.json
file.With this defined, deno will support npm modules without any other changes. Following works as expected.
Would you consider making ncu compatible with Deno with above workflow?
The text was updated successfully, but these errors were encountered: