build.js 412 B

12345678910111213
  1. 'use strict'
  2. var chain = require('slide').chain
  3. var build = require('../../build.js')
  4. var npm = require('../../npm.js')
  5. var packageId = require('../../utils/package-id.js')
  6. module.exports = function (staging, pkg, log, next) {
  7. log.silly('build', packageId(pkg))
  8. chain([
  9. [build.linkStuff, pkg.package, pkg.path, npm.config.get('global')],
  10. [build.writeBuiltinConf, pkg.package, pkg.path]
  11. ], next)
  12. }