diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-10 14:46:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 14:46:25 -0400 |
commit | a49d0bd10ba2a4745c291f3f413d97396213e4ec (patch) | |
tree | 0c63c25304f465e969d2bcfb8bd71df8575c4033 /tests/registry/npm/@denotest/cjs-import-dual/1.0.0 | |
parent | 4d2d764816d266e42f3b2251248b100abb667c83 (diff) |
fix(check): CJS types importing dual ESM/CJS package should prefer CJS types (#24492)
Closes #16370
Diffstat (limited to 'tests/registry/npm/@denotest/cjs-import-dual/1.0.0')
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/index.d.ts b/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/index.d.ts new file mode 100644 index 000000000..55aaea82e --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/index.d.ts @@ -0,0 +1,2 @@ +// it should pick up the cjs types +export { getKind } from "@denotest/dual-cjs-esm"; diff --git a/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/index.js b/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/index.js new file mode 100644 index 000000000..45afec736 --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/index.js @@ -0,0 +1 @@ +module.exports.getKind = require("@denotest/dual-cjs-esm").getKind; diff --git a/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/package.json b/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/package.json new file mode 100644 index 000000000..78eb8d515 --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-import-dual/1.0.0/package.json @@ -0,0 +1,7 @@ +{ + "name": "@denotest/cjs-import-dual", + "version": "1.0.0", + "dependencies": { + "@denotest/dual-cjs-esm": "1" + } +}
\ No newline at end of file |