1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-10 16:11:13 -05:00
denoland-deno/cli/tools
David Sherret be97170a19
feat(unstable): ability to npm install then deno run main.ts (#20967)
This PR adds a new unstable "bring your own node_modules" (BYONM)
functionality currently behind a `--unstable-byonm` flag (`"unstable":
["byonm"]` in a deno.json).

This enables users to run a separate install command (ex. `npm install`,
`pnpm install`) then run `deno run main.ts` and Deno will respect the
layout of the node_modules directory as setup by the separate install
command. It also works with npm/yarn/pnpm workspaces.

For this PR, the behaviour is opted into by specifying
`--unstable-byonm`/`"unstable": ["byonm"]`, but in the future we may
make this the default behaviour as outlined in
https://github.com/denoland/deno/issues/18967#issuecomment-1761248941

This is an extremely rough initial implementation. Errors are
terrible in this and the LSP requires frequent restarts. Improvements
will be done in follow up PRs.
2023-10-25 14:39:00 -04:00
..
bench refactor: add WatcherCommunicator helper struct (#20927) 2023-10-19 07:05:00 +02:00
coverage fix: improved using declaration support (#20959) 2023-10-24 09:37:02 -04:00
init fix(init): skip existing files instead of erroring (#20434) 2023-09-12 12:55:26 +02:00
jupyter feat(unstable): add Deno.jupyter.display API (#20819) 2023-10-12 22:32:38 +00:00
repl refactor: upgrade to deno_ast 0.31 and deno_graph 0.59 (#20965) 2023-10-24 21:43:19 +00:00
test refactor: add WatcherCommunicator helper struct (#20927) 2023-10-19 07:05:00 +02:00
vendor feat(unstable): ability to npm install then deno run main.ts (#20967) 2023-10-25 14:39:00 -04:00
bundle.rs fix: improved using declaration support (#20959) 2023-10-24 09:37:02 -04:00
check.rs refactor(npm): break up NpmModuleLoader and move more methods into the managed CliNpmResolver (#20777) 2023-10-03 19:05:06 -04:00
compile.rs feat(compile): Add --no-terminal to compile command (#17991) 2023-07-28 18:46:26 +03:00
doc.rs Reland "fix(cli): don't store blob and data urls in the module cache" (#18581) 2023-07-02 00:52:30 +02:00
fmt.rs fix: improved using declaration support (#20959) 2023-10-24 09:37:02 -04:00
info.rs refactor: upgrade to deno_ast 0.31 and deno_graph 0.59 (#20965) 2023-10-24 21:43:19 +00:00
installer.rs refactor: use "deno_config" crate (#20260) 2023-08-24 11:21:34 +02:00
lint.rs refactor: add WatcherCommunicator helper struct (#20927) 2023-10-19 07:05:00 +02:00
mod.rs feat: Add "deno jupyter" subcommand (#20337) 2023-09-16 02:42:09 +02:00
run.rs refactor: add WatcherCommunicator helper struct (#20927) 2023-10-19 07:05:00 +02:00
task.rs chore(task): remove warning for npm "scripts" (#20880) 2023-10-12 07:33:59 +01:00
upgrade.rs refactor: migrate more ops to op2 macro (#20808) 2023-10-07 21:04:03 +05:30