npm-submodules
Version:
Simple way to manage typescipt and angular2 submodules from one repository
17 lines (16 loc) • 540 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const execa = require('execa');
function npmPublish({ cwd, yarn, tag = '', access = '' }) {
// const args = [yarn ? 'yarn --new-version' : 'npm', 'publish', cwd];
// todo: next time yarn, next time
const args = ['npm', 'publish', cwd];
if (tag) {
args.push('--tag', tag);
}
if (access) {
args.push('--access', access);
}
return execa.shell(args.join(' '), { preferLocal: true });
}
exports.npmPublish = npmPublish;
;