UNPKG

install-module-linked

Version:
9 lines 598 B
"use strict"; 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; }