Skip to content
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 run npm:<package> with same compat as DENO_FUTURE=1/BYONM #24903

Closed
birkskyum opened this issue Aug 6, 2024 · 1 comment
Closed

deno run npm:<package> with same compat as DENO_FUTURE=1/BYONM #24903

birkskyum opened this issue Aug 6, 2024 · 1 comment
Labels
needs investigation requires further investigation before determining if it is an issue or not node compat

Comments

@birkskyum
Copy link
Contributor

birkskyum commented Aug 6, 2024

There are many things that only work with DENO_FUTURE=1 and then executing the packages with package.json script, such as Nitro (deno ticket here).

What i'd like to be able to do is deno run -A npm:nitropack dev, but what I have to do instead is:

pnpm i nitropack
DENO_FUTURE=1 deno task dev

and then in package.json have a dev script with nitropack dev

There is no version of deno run that can directly execute these packages like npx nitropack dev / pnpx / bunx can.

@birkskyum birkskyum changed the title Alternative to deno run npm:package that run similar to DENO_FUTURE=1 deno run npm:package with same level of compat as DENO_FUTURE=1 Aug 6, 2024
@birkskyum birkskyum changed the title deno run npm:package with same level of compat as DENO_FUTURE=1 deno run npm:package with same compat as DENO_FUTURE=1/BYONM Aug 6, 2024
@birkskyum birkskyum changed the title deno run npm:package with same compat as DENO_FUTURE=1/BYONM deno run npm:<package> with same compat as DENO_FUTURE=1/BYONM Aug 6, 2024
@lucacasonato lucacasonato added bug Something isn't working correctly node compat labels Aug 6, 2024
@dsherret dsherret added needs investigation requires further investigation before determining if it is an issue or not and removed bug Something isn't working correctly labels Aug 6, 2024
@birkskyum
Copy link
Contributor Author

birkskyum commented Sep 18, 2024

deno 2.0.0-rc.2+aaf2bf4

deno run -A npm:nitropack dev

gives:

error: npm package 'uWebSockets.js' does not exist.

Which indicates it's actually trying to do what it's supposed to, it just hits the

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation requires further investigation before determining if it is an issue or not node compat
Projects
None yet
Development

No branches or pull requests

3 participants