UNPKG

npm-submodules

Version:

Simple way to manage typescipt and angular2 submodules from one repository

12 lines (11 loc) 356 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const execa = require('execa'); function npmLink({ cwd, yarn, module = '' }) { // const npm = yarn ? 'yarn' : 'npm'; return execa.shell(['npm', 'link', module].join(' '), { cwd: path.resolve(cwd) }); } exports.npmLink = npmLink;