Skip to content

Commit cec8078

Browse files
Drapegnikgr2m
authored andcommitted
fix: get tarball name as last line from stdout
1 parent 9383a98 commit cec8078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = async ({npmPublish, tarballDir, pkgRoot}, {publishConfig, name}
1111

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

0 commit comments

Comments
 (0)