diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-12 15:47:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-12 15:47:54 -0400 |
| commit | 98454c1eb802b91a8c77dd97888a8994c85dfa46 (patch) | |
| tree | 851f7590f14a2f54db5ef306e884cc2c64bf6f07 /cli/tests/testdata/npm/dual_cjs_esm/main.ts | |
| parent | a3a4760831e14307a9499d4e410cf1653b416dc1 (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.ts | 3 |
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()); |
