文件操作 - rebuild.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js
编辑文件内容
'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); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件