Skip to content

Commit

Permalink
fix: get tarball name as last line from stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapegnik authored and gr2m committed Feb 7, 2018
1 parent 9383a98 commit cec8078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = async ({npmPublish, tarballDir, pkgRoot}, {publishConfig, name}

if (tarballDir) {
logger.log('Creating npm package version %s', version);
const tarball = await execa.stdout('npm', ['pack', `./${basePath}`]);
const tarball = (await execa.stdout('npm', ['pack', `./${basePath}`])).split('\n').pop();
await move(tarball, path.join(tarballDir.trim(), tarball));
}

Expand Down

0 comments on commit cec8078

Please sign in to comment.