Publishing
Use the publish
command to publish your packages to the npm registry.
Command
Publish all packages in the monorepo at once.
bash
monopkg publish
bash
bun x monopkg publish
bash
npx monopkg publish
bash
yarn dlx monopkg publish
Note
The publish
command uses the npm publish
command under the hood. Make sure you are logged in to the npm registry before running the command.
Options
-f
,--filter
- Include specific packages.-e
,--exclude
- Exclude specific packages.-w
,--workspace
- Root workspace of the packages.
Examples
Publish all packages
bash
monopkg publish
bash
bun x monopkg publish
bash
npx monopkg publish
bash
yarn dlx monopkg publish
Publish specific packages
bash
monopkg publish -f package1 package2
bash
bun x monopkg publish -f package1 package2
bash
npx monopkg publish -f package1 package2
bash
yarn dlx monopkg publish -f package1 package2