deno/cli/cache
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
..
cache_db.rs chore(cli): remove atty crate (#20275) 2023-08-25 07:43:07 -06:00
caches.rs fix(compile): handle when DENO_DIR is readonly (#19257) 2023-05-25 14:27:45 -04:00
check.rs feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
common.rs refactor(lsp): move config file related code to config.rs (#19790) 2023-07-10 21:45:09 +00:00
deno_dir.rs feat(unstable): optional deno_modules directory (#19977) 2023-08-02 00:49:09 +00:00
disk_cache.rs refactor: use deno_cache_dir crate (#20092) 2023-08-08 14:23:02 +00:00
emit.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
incremental.rs fix(ext/web): add stream tests to detect v8slice split bug (#20253) 2023-08-23 17:03:05 -06:00
mod.rs feat(unstable): ability to npm install then deno run main.ts (#20967) 2023-10-25 14:39:00 -04:00
node.rs feat(ext/node): properly segregate node globals (#19307) 2023-07-19 10:30:04 +02:00
parsed_source.rs feat: support import attributes (#20342) 2023-09-07 09:09:16 -04:00