Download node_modules/@mapbox/node-pre-gyp/lib/rebuild.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40mapbox/node-pre-gyp/lib/rebuild.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js
-
curl -L -o rebuild.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40mapbox/node-pre-gyp/lib/rebuild.js
517 Bytes
| ; | |
| module.exports = exports = rebuild; | |
| exports.usage = 'Runs "clean" and "build" at once'; | |
| const napi = require('./util/napi.js'); | |
| function rebuild(gyp, argv, callback) { | |
| const package_json = gyp.package_json; | |
| let commands = [ | |
| { name: 'clean', args: [] }, | |
| { name: 'build', args: ['rebuild'] } | |
| ]; | |
| commands = napi.expand_commands(package_json, gyp.opts, commands); | |
| for (let i = commands.length; i !== 0; i--) { | |
| gyp.todo.unshift(commands[i - 1]); | |
| } | |
| process.nextTick(callback); | |
| } | |