diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-24 15:04:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 15:04:21 -0400 |
commit | ba6f573b4eb0855f971ebef7b4b30d6d3ed887e4 (patch) | |
tree | 34a04866a07a75ae9bd24e900649d2e6a247a872 /cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts | |
parent | 0fbfdaf90147aa0dd5dce6d2df6c0c0691f8cc4a (diff) |
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.
Diffstat (limited to 'cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts')
-rw-r--r-- | cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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()); |