From fde938116d8b44a87579d6b65dcba79cbe988809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 3 Oct 2022 23:26:42 +0200 Subject: feat(unstable): add support for npm specifier cli arguments for 'deno cache' (#16141) This commit adds support for npm specifier in "deno cache" subcommand. ``` $ deno cache --unstable npm:vite npm:chalk https://deno.land/std/http/file_server.ts ``` Besides downloading requested npm package(s), it will also download necessary code from "std/node/". --- cli/tests/integration/npm_tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli/tests/integration/npm_tests.rs') diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index de3f81674..bc19c613d 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -203,6 +203,13 @@ itest!(error_version_after_subpath { exit_code: 1, }); +itest!(deno_cache { + args: "cache --unstable --reload npm:chalk npm:mkdirp", + output: "npm/deno_cache.out", + envs: env_vars(), + http_server: true, +}); + #[test] fn parallel_downloading() { let (out, _err) = util::run_and_collect_output_with_args( -- cgit v1.2.3