Is it possible to "disable" publishing certain packages?
See original GitHub issueThere are some packages that do not need to be published to a registry while still have package.json and to be managed by lerna. Is it possible to somehow disable publishing, versioning etc these types of packages when calling lerna publish
?
lerna.json
{
"packages": [
"packages/*"
],
"version": "0.0.2-dev.0"
}
Context
I have some npm-based projects in a monorepo that will only be used for building (e.g docs, storybook pages). These packages do not need to be stored in a registry.
Your Environment
Executable | Version |
---|---|
lerna --version |
3.13.0 |
npm --version |
6.5.0 |
yarn --version |
1.13.0 |
node --version |
v11.9.0 |
OS | Version |
---|---|
NAME | VERSION |
macOS Mojave | 10.14.3 |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Unpublishing packages from the registry - npm Docs
If you want to completely remove all versions of a package from the registry, you can unpublish it completely. This will delete it...
Read more >Disable Publishing and Distribution - SQL Server
To disable publishing and distribution Right-click the Replication folder, and then click Disable Publishing and Distribution. Complete the ...
Read more >How to disable package and publish tasks for root aggregate ...
Instead of playing whac-a-mole by listing specific tasks to disable ( publish , publish-local , publish-signed , etc), another option is to turn...
Read more >Can I purposely prevent users from publishing to the ...
You may not be able to prevent developers from publishing, but you may be able to achieve the same effect with personal workspaces...
Read more >Enable or disable publishing deep scan
Clones – items that are clones of the selected item. · Media items – media items that are referenced by the selected item....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We can use
--no-private
flag in lerna version and publish commands to skip the private packagesReference: https://github.com/lerna/lerna/tree/master/commands/version#--no-private
If that is the case, they also don’t need to be managed by Lerna. Use relative
file:
dependencies from the root, and move them outside thepackages/
tree (or wherever you’ve configured lerna.json’spackages
).Alternately, you can set
"private": true
in the package.json of the modules you never want to publish. They’ll still get a version, but that’s only a big deal if you’re versioning independently (you’re not, it appears) and you’re bothered by extra git tags (you shouldn’t be).