From cc406c8360b4ba559d7f13e14d2a32e1ab761b0d Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 19 May 2023 18:39:27 -0400 Subject: feat(vendor): support for npm specifiers (#19186) We never properly added support for this. This fixes vendoring when it has npm or node specifiers. Vendoring occurs by adding a `"nodeModulesDir": true` property to deno.json then it uses a local node_modules directory. This can be opted out by setting `"nodeModulesDir": false` or running with `--node-modules-dir=false`. Closes #18090 Closes #17210 Closes #17619 Closes #16778 --- cli/tests/testdata/vendor/npm_and_node_specifier.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 cli/tests/testdata/vendor/npm_and_node_specifier.ts (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/vendor/npm_and_node_specifier.ts b/cli/tests/testdata/vendor/npm_and_node_specifier.ts new file mode 100644 index 000000000..61962e836 --- /dev/null +++ b/cli/tests/testdata/vendor/npm_and_node_specifier.ts @@ -0,0 +1,2 @@ +export { default as path } from "node:path"; +export { getValue, setValue } from "npm:@denotest/esm-basic"; -- cgit v1.2.3