summaryrefslogtreecommitdiff
path: root/cli/compat/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/compat/testdata')
-rw-r--r--cli/compat/testdata/not_esm/main.js1
-rw-r--r--cli/compat/testdata/not_esm/node_modules/foo/index.js0
-rw-r--r--cli/compat/testdata/not_esm/node_modules/foo/package.json5
-rw-r--r--cli/compat/testdata/not_esm/package.json6
4 files changed, 12 insertions, 0 deletions
diff --git a/cli/compat/testdata/not_esm/main.js b/cli/compat/testdata/not_esm/main.js
new file mode 100644
index 000000000..347e20832
--- /dev/null
+++ b/cli/compat/testdata/not_esm/main.js
@@ -0,0 +1 @@
+require("foo");
diff --git a/cli/compat/testdata/not_esm/node_modules/foo/index.js b/cli/compat/testdata/not_esm/node_modules/foo/index.js
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cli/compat/testdata/not_esm/node_modules/foo/index.js
diff --git a/cli/compat/testdata/not_esm/node_modules/foo/package.json b/cli/compat/testdata/not_esm/node_modules/foo/package.json
new file mode 100644
index 000000000..a74d52fd3
--- /dev/null
+++ b/cli/compat/testdata/not_esm/node_modules/foo/package.json
@@ -0,0 +1,5 @@
+{
+ "name": "foo",
+ "type": "module",
+ "exports": "./index.js"
+}
diff --git a/cli/compat/testdata/not_esm/package.json b/cli/compat/testdata/not_esm/package.json
new file mode 100644
index 000000000..4b03fc938
--- /dev/null
+++ b/cli/compat/testdata/not_esm/package.json
@@ -0,0 +1,6 @@
+{
+ "name": "bar",
+ "dependencies": {
+ "foo": "1.0.0"
+ }
+}