mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
1587387bcc
1. Moves the npm registries to their own dedicated ports. 2. Moves the data files out of `tests/testdata/npm/registry` to `tests/registry/npm`.
20 lines
470 B
JavaScript
20 lines
470 B
JavaScript
const path = require("path");
|
|
|
|
function childProcessFork(path) {
|
|
const command = new Deno.Command(Deno.execPath(), {
|
|
args: ["run", "-A", path],
|
|
env: {
|
|
"DENO_DONT_USE_INTERNAL_NODE_COMPAT_STATE": Deno[Deno.internal].core.ops.op_npm_process_state(),
|
|
}
|
|
});
|
|
const child = command.spawn();
|
|
child.status.then(() => {
|
|
console.log("Done.");
|
|
});
|
|
}
|
|
|
|
module.exports = {
|
|
run() {
|
|
childProcessFork(path.join(__dirname, "forked_path.js"));
|
|
}
|
|
};
|