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