This commit is contained in:
Manu Mtz.-Almeida
2018-03-21 23:58:35 +01:00
parent f904fd111b
commit 2b8549bd3f
6 changed files with 29 additions and 5 deletions

View File

@ -30,7 +30,7 @@ async function publishProject(project, version) {
const projectRoot = common.projectPath(project);
const listr = new Listr([{
title: `Publish (latest) ${project} (v${version})`,
task: () => execa('npm', ['publish'].concat(opts.tag ? ['--tag', 'latest'] : []), { cwd: projectRoot })
task: () => execa('npm', ['publish', '--tag', 'latest'], { cwd: projectRoot })
}], { showSubtasks: false });
await listr.run();
}