[x] I used gofmt for formatting the code before submitting the pull request.
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.
[![👍 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)
[x] I used gofmt for formatting the code before submitting the pull request.
When using the
jf 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:
Before:![image](https://github.com/jfrog/jfrog-cli-core/assets/23456142/9c12903a-23c3-4b0a-91d6-ab19c57e0933)
After:![image](https://github.com/jfrog/jfrog-cli-core/assets/23456142/3a0cdea2-0067-4603-abb1-14fe5f43a751)
Should fix the following issue: https://github.com/jfrog/jfrog-azure-devops-extension/issues/473