mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -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');
|
|
} |