Skip to content

Commit 06d9cf8

Browse files
authored
Use the last line of the npm pack command
To fetch the name of the tarball.
1 parent cba7bf7 commit 06d9cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_releaser/npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def build_dist(package, dist_dir):
2424

2525
if osp.isdir(package):
2626
basedir = package
27-
tarball = osp.join(package, util.run("npm pack", cwd=package))
27+
tarball = osp.join(package, util.run("npm pack", cwd=package).split('\n')[-1])
2828
else:
2929
basedir = osp.dirname(package)
3030
tarball = package

0 commit comments

Comments
 (0)