mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
04f9db5b22
We would resolve the wrong package.json, resulting in an inability to run CJS (or other node-mode) scripts
6 lines
No EOL
177 B
JavaScript
6 lines
No EOL
177 B
JavaScript
if ("Deno" in globalThis && typeof globalThis.Deno === 'object') {
|
|
require('./helper.js');
|
|
console.log('deno preinstall.js');
|
|
} else {
|
|
console.log('node preinstall.js');
|
|
} |