diff options
Diffstat (limited to 'node_modules/node-pre-gyp/lib/rebuild.js')
| -rw-r--r-- | node_modules/node-pre-gyp/lib/rebuild.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/node-pre-gyp/lib/rebuild.js b/node_modules/node-pre-gyp/lib/rebuild.js deleted file mode 100644 index 615a524..0000000 --- a/node_modules/node-pre-gyp/lib/rebuild.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -module.exports = exports = rebuild; - -exports.usage = 'Runs "clean" and "build" at once'; - -var fs = require('fs'); -var napi = require('./util/napi.js'); - -function rebuild (gyp, argv, callback) { - var package_json = JSON.parse(fs.readFileSync('./package.json')); - var commands = [ - { name: 'clean', args: [] }, - { name: 'build', args: ['rebuild'] } - ]; - commands = napi.expand_commands(package_json, gyp.opts, commands); - for (var i = commands.length; i !== 0; i--) { - gyp.todo.unshift(commands[i-1]); - } - process.nextTick(callback); -} |