Skip to content

Commit 7002d89

Browse files
author
Steven Silvester
authored
Merge pull request #37 from jtpio/npm-pack-output
Use the last line of the `npm pack` command
2 parents cba7bf7 + 3f99e3a commit 7002d89

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)