Skip to content

Commit ee81639

Browse files
authored
Add warning if workspaces does not contain public package
1 parent 59f6011 commit ee81639

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jupyter_releaser/npm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def build_dist(package, dist_dir):
4949
paths.append(str(osp.abspath(path)).replace(os.sep, "/"))
5050
if paths:
5151
util.run(f"npm pack {' '.join(paths)}", cwd=dest, quiet=True)
52+
else:
53+
util.log("The NPM package defines 'workspaces' that does not contain any public package; this may be a mistake.")
5254

5355

5456
def extract_dist(dist_dir, target):

0 commit comments

Comments
 (0)