aboutsummaryrefslogtreecommitdiff
path: root/test/cli/run/commonjs-no-exports-fixture.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-06-19 22:34:22 -0700
committerGravatar GitHub <noreply@github.com> 2023-06-19 22:34:22 -0700
commit7d94a49ef403750886c2e9ebfc5a7752b8ccb882 (patch)
tree33cf444dfbf380e04c45ccfb753a8e46ee6dbcd5 /test/cli/run/commonjs-no-exports-fixture.js
parentcbd6d24d34b78de2b28fad75df2be1b728561d93 (diff)
downloadbun-7d94a49ef403750886c2e9ebfc5a7752b8ccb882.tar.gz
bun-7d94a49ef403750886c2e9ebfc5a7752b8ccb882.tar.zst
bun-7d94a49ef403750886c2e9ebfc5a7752b8ccb882.zip
Fix bug that breaks `bunx prisma init` when node is not installed (#3362)
* tweak cjs * Handle more cases, add a test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test/cli/run/commonjs-no-exports-fixture.js')
-rw-r--r--test/cli/run/commonjs-no-exports-fixture.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cli/run/commonjs-no-exports-fixture.js b/test/cli/run/commonjs-no-exports-fixture.js
new file mode 100644
index 000000000..12458c3de
--- /dev/null
+++ b/test/cli/run/commonjs-no-exports-fixture.js
@@ -0,0 +1,7 @@
+// see https://www.npmjs.com/package/checkpoint-client
+require("node:fs");
+
+eval("__dirname");
+eval("__filename");
+
+console.log("--pass--");