jfrog / jfrog-cli-core

Apache License 2.0
32 stars 55 forks source link

Publish multiple npm workspaces packages #1149

Closed EyalDelarea closed 4 months ago

EyalDelarea commented 4 months ago

When using thejf npm publish command the core didn't address the --workspaces flag which indices that there are multiple modules inside the current project. This PR fixes the publish command to handle more than one module if exists and combine the results.

example package.json workspaces defined:

{ "workspaces": [ "second", "third" ] }

Before: image

After: image

Should fix the following issue: https://github.com/jfrog/jfrog-azure-devops-extension/issues/473

github-actions[bot] commented 4 months ago
[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

[🐸 JFrog Frogbot](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)