diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-07-15 12:11:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 12:11:09 -0700 |
commit | 04f9db5b2217fe06f88e76146aac6362ff0b0b86 (patch) | |
tree | aa4becb2529141de3e6bb8d3ba430f3c7e036902 /tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js | |
parent | 29186d7e5963f2398b28ee2c043b27e4881075ef (diff) |
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
Diffstat (limited to 'tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js')
-rw-r--r-- | tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js b/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js new file mode 100644 index 000000000..b5511f990 --- /dev/null +++ b/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js @@ -0,0 +1,5 @@ +const inspect = require('util').inspect; + +inspect({ + "preinstall": "script" +});
\ No newline at end of file |