1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-18 13:22:55 -05:00
denoland-deno/tests
Nathan Whitaker 6f506208f6
feat(unstable): support caching npm dependencies only as they're needed (#27300)
Currently deno eagerly caches all npm packages in the workspace's npm
resolution. So, for instance, running a file `foo.ts` that imports
`npm:chalk` will also install all dependencies listed in `package.json`
and all `npm` dependencies listed in the lockfile.

This PR refactors things to give more control over when and what npm
packages are automatically cached while building the module graph.

After this PR, by default the current behavior is unchanged _except_ for
`deno install --entrypoint`, which will only cache npm packages used by
the given entrypoint. For the other subcommands, this behavior can be
enabled with `--unstable-npm-lazy-caching`


Fixes #25782.

---------

Signed-off-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-12-10 18:24:23 -08:00
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi fix(ext/ffi): return u64/i64 as bigints from nonblocking ffi calls (#26486) 2024-10-24 09:41:38 +05:30
integration chore(tests): Deprecate remaining usages of itest in check tests (#26962) 2024-12-10 23:41:24 +01:00
napi chore: upgrade to rust 1.82 and LLVM 19 (#26615) 2024-11-01 16:13:02 +05:30
node_compat test(ext/node): remove flaky node:dgram compat test case (#27249) 2024-12-07 00:30:04 +09:00
registry fix(install): use locked version of jsr package when fetching exports (#27237) 2024-12-05 18:55:35 +00:00
specs feat(unstable): support caching npm dependencies only as they're needed (#27300) 2024-12-10 18:24:23 -08:00
testdata chore(tests): Deprecate remaining usages of itest in check tests (#26962) 2024-12-10 23:41:24 +01:00
unit refactor(ext/fs): align error messages (#25414) 2024-11-28 18:47:07 +00:00
unit_node test(ext/node): fix flaky node/http2.createServer() test (#27208) 2024-12-06 00:25:16 +09:00
util fix: improve auto-imports for npm packages (#27224) 2024-12-04 12:05:34 -05:00
wpt perf(ext/webstorage): use object wrap for Storage (#26931) 2024-11-27 16:11:57 +05:30
Cargo.toml chore: update hickory dns crates (#27137) 2024-12-05 14:11:35 +00:00
lib.rs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests