move "exit0.js" out of the "bin" directory

This commit is contained in:
Evan Wallace
2021-01-26 04:09:30 -08:00
parent 0eb6580c14
commit 7541fe49ad
3 changed files with 3 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ exports.buildWasmLib = async (esbuildPath) => {
exit0Map[entry] = compressed.toString('base64');
}
}
fs.writeFileSync(path.join(npmWasmDir, 'bin', 'exit0.js'), `
fs.writeFileSync(path.join(npmWasmDir, 'exit0.js'), `
// Each of these is a native module that calls "exit(0)". This is a workaround
// for https://github.com/nodejs/node/issues/36616. These native modules are
// stored in a string both to make them smaller and to hide them from Yarn 2,