From 04f9db5b2217fe06f88e76146aac6362ff0b0b86 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:11:09 -0700 Subject: fix(node): Fix `--allow-scripts` with no `deno.json` (#24533) We would resolve the wrong package.json, resulting in an inability to run CJS (or other node-mode) scripts --- tests/specs/npm/lifecycle_scripts/no_deno_json.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/specs/npm/lifecycle_scripts/no_deno_json.js (limited to 'tests/specs/npm/lifecycle_scripts/no_deno_json.js') diff --git a/tests/specs/npm/lifecycle_scripts/no_deno_json.js b/tests/specs/npm/lifecycle_scripts/no_deno_json.js new file mode 100644 index 000000000..2f26eb7e5 --- /dev/null +++ b/tests/specs/npm/lifecycle_scripts/no_deno_json.js @@ -0,0 +1 @@ +import {} from "npm:@denotest/lifecycle-scripts-cjs@1.0.0"; -- cgit v1.2.3