summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/dual_cjs_esm/main.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-12 15:47:54 -0400
committerGitHub <noreply@github.com>2022-09-12 15:47:54 -0400
commit98454c1eb802b91a8c77dd97888a8994c85dfa46 (patch)
tree851f7590f14a2f54db5ef306e884cc2c64bf6f07 /cli/tests/testdata/npm/dual_cjs_esm/main.ts
parenta3a4760831e14307a9499d4e410cf1653b416dc1 (diff)
fix(npm): support cjs resolution of package subpath with package.json (#15855)
Diffstat (limited to 'cli/tests/testdata/npm/dual_cjs_esm/main.ts')
-rw-r--r--cli/tests/testdata/npm/dual_cjs_esm/main.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/dual_cjs_esm/main.ts b/cli/tests/testdata/npm/dual_cjs_esm/main.ts
index 3e80402c6..6d973affb 100644
--- a/cli/tests/testdata/npm/dual_cjs_esm/main.ts
+++ b/cli/tests/testdata/npm/dual_cjs_esm/main.ts
@@ -1,3 +1,6 @@
import { getKind } from "npm:@denotest/dual-cjs-esm";
+import * as cjs from "npm:@denotest/dual-cjs-esm/cjs/main.cjs";
console.log(getKind());
+console.log(cjs.getKind());
+console.log(cjs.getSubPathKind());