install-module-linked
Version:
Installs and symlinks a module into node_modules
9 lines • 598 B
JavaScript
;
var path = require('path');
var workerPath = path.join(__dirname, '..', '..', 'cjs', 'workers', 'async.js');
module.exports = function installModuleSync(installString, nodeModulesPath, options) {
return require('function-exec-sync')({
callbacks: true
}, workerPath, installString, nodeModulesPath, options);
};
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }