Reputation: 322
I have two npm
packages in one folder
project
|__package1
| |__package.json
|
|__package2
|__package.json
I want to safely publish them both as separated packages. If the first publishing is successful and the second publishing fails - no one package should be published.
It should be something similar to how maven
deploys projects with parent pom.
For example:
project
|__pom.xml # <- parent pom
|__module1
| |__pom.xml
|__module2
| |__pom.xml
If I'm in project
directory and do mvn deploy
I get module1
and module2
in Maven Central with the same version. And if something's wrong - no one module is published.
So I want to achieve the same with npm
.
Upvotes: 1
Views: 120