Download scripts/build-v8-bytecode.js from chahuadev/chahuadev-dev-launcher: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/datasets/chahuadev/chahuadev-dev-launcher/resolve/main/scripts/build-v8-bytecode.js
- Command line
-
hf download hf://datasets/chahuadev/chahuadev-dev-launcher/scripts/build-v8-bytecode.js
-
curl -L -o build-v8-bytecode.js https://huggingface.co/datasets/chahuadev/chahuadev-dev-launcher/resolve/main/scripts/build-v8-bytecode.js
612 Bytes
| const path = require('path') | |
| const { spawn } = require('child_process') | |
| const externalScript = path.join(__dirname, 'build-v8-external.js') | |
| const forwardedArgs = process.argv.slice(2) | |
| const child = spawn(process.execPath, [externalScript, ...forwardedArgs], { | |
| stdio: 'inherit', | |
| shell: false, | |
| windowsHide: true, | |
| env: { | |
| ...process.env | |
| } | |
| }) | |
| child.on('error', (err) => { | |
| console.error(`[Launcher V8] Failed to start external builder: ${err && err.message ? err.message : err}`) | |
| process.exit(1) | |
| }) | |
| child.on('exit', (code) => { | |
| process.exit(code ?? 1) | |
| }) | |