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/testdata/npm/deno_cache.out | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cli/tests/testdata/npm/deno_cache.out (limited to 'cli/tests/testdata/npm') diff --git a/cli/tests/testdata/npm/deno_cache.out b/cli/tests/testdata/npm/deno_cache.out new file mode 100644 index 000000000..957919df1 --- /dev/null +++ b/cli/tests/testdata/npm/deno_cache.out @@ -0,0 +1,5 @@ +Download http://localhost:4545/npm/registry/chalk +Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz +Download http://localhost:4545/npm/registry/mkdirp +Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz +Download http://localhost:4545/npm/registry/mkdirp/mkdirp-1.0.4.tgz -- cgit v1.2.3