summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/registry
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-11-24 12:07:36 -0500
committerGitHub <noreply@github.com>2022-11-24 17:07:36 +0000
commitb6f49cf4790926df125add2329611a8eff8db9da (patch)
tree513a81e64185115e50cd06636a410178ed23c14b /cli/tests/testdata/npm/registry
parent04afc06b00b28645462f3cca1626d22c1cd579f8 (diff)
fix(npm/check): prioritize exports over types entry (#16788)
Diffstat (limited to 'cli/tests/testdata/npm/registry')
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.d.ts1
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.js1
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/package.json13
3 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.d.ts b/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.d.ts
new file mode 100644
index 000000000..2341a14f0
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.d.ts
@@ -0,0 +1 @@
+export function getValue(): 5;
diff --git a/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.js b/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.js
new file mode 100644
index 000000000..d0c5dbc70
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/dist/main.js
@@ -0,0 +1 @@
+module.exports.getValue = () => 5;
diff --git a/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/package.json
new file mode 100644
index 000000000..5eb859c4e
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/types-entry-value-not-exists/1.0.0/package.json
@@ -0,0 +1,13 @@
+{
+ "name": "@denotest/types-entry-value-not-exists",
+ "version": "1.0.0",
+ "main": "./dist/main.js",
+ "types": "./index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./dist/main.d.ts",
+ "node": "./dist/main.js",
+ "require": "./dist/main.js"
+ }
+ }
+}