Urara-Blog/node_modules/.pnpm-store/v3/files/ba/3f95a353a5196a01959d900d90a39c67586e8a33d92bf67f3675160dd83656109b6ccad9b6c23457866823af4b483f8b544b224e08d925a8b8e75781ceb5b8
2022-08-14 01:14:53 +08:00

20 lines
517 B
Text

'use strict';
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);
}