From ba6f573b4eb0855f971ebef7b4b30d6d3ed887e4 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 24 May 2023 15:04:21 -0400 Subject: fix(npm): create `node_modules/.deno/node_modules` folder (#19242) This is what pnpm does and we were missing it. It makes modules work which have a dependency on something, but don't say they have that dependency, but that dep is still in the tree somewhere. --- cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts (limited to 'cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts') diff --git a/cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts b/cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts new file mode 100644 index 000000000..6e4a32d8e --- /dev/null +++ b/cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts @@ -0,0 +1,7 @@ +import { getKind as getKind1 } from "npm:@denotest/dual-cjs-esm-dep"; +// this should still be able to be resolved even though it's missing the +// "@denotest/dual-cjs-esm" package because the above import will resolve it +import { getKind as getKind2 } from "npm:@denotest/dual-cjs-esm-dep-missing"; + +console.log(getKind1()); +console.log(getKind2()); -- cgit v1.2.3