mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
105d27bc7d
This change improves the Node.js compatibility in managed npm resolution mode by disabling the discovery of `node_modules` when the main specifier is inside of `DENO_DIR`. closes #22732 closes #24589
6 lines
240 B
JavaScript
6 lines
240 B
JavaScript
const child_process = require('child_process');
|
|
const path = require('path');
|
|
|
|
const execArgs = [path.join(__dirname, "exec-child.js")]
|
|
const buf = child_process.execFileSync(process.execPath, execArgs);
|
|
console.log(buf.toString().trim());
|