summaryrefslogtreecommitdiff
path: root/tests/testdata/publish/javascript_missing_decl_file
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/publish/javascript_missing_decl_file')
-rw-r--r--tests/testdata/publish/javascript_missing_decl_file/deno.json8
-rw-r--r--tests/testdata/publish/javascript_missing_decl_file/mod.js3
-rw-r--r--tests/testdata/publish/javascript_missing_decl_file/other.js3
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/testdata/publish/javascript_missing_decl_file/deno.json b/tests/testdata/publish/javascript_missing_decl_file/deno.json
new file mode 100644
index 000000000..e12927c26
--- /dev/null
+++ b/tests/testdata/publish/javascript_missing_decl_file/deno.json
@@ -0,0 +1,8 @@
+{
+ "name": "@foo/bar",
+ "version": "1.0.0",
+ "exports": {
+ ".": "./mod.js",
+ "./other": "./other.js"
+ }
+}
diff --git a/tests/testdata/publish/javascript_missing_decl_file/mod.js b/tests/testdata/publish/javascript_missing_decl_file/mod.js
new file mode 100644
index 000000000..4a62fa5b4
--- /dev/null
+++ b/tests/testdata/publish/javascript_missing_decl_file/mod.js
@@ -0,0 +1,3 @@
+export function getRandom() {
+ return Math.random();
+}
diff --git a/tests/testdata/publish/javascript_missing_decl_file/other.js b/tests/testdata/publish/javascript_missing_decl_file/other.js
new file mode 100644
index 000000000..89ffb80ba
--- /dev/null
+++ b/tests/testdata/publish/javascript_missing_decl_file/other.js
@@ -0,0 +1,3 @@
+export function other() {
+ return Math.random();
+}