Releasing prerelease versions without modifying package.json files
See original GitHub issueAffected Packages
Problem
Let’s say we have a UI library that is actively developed and releases are happening multiple times from different branches. The releases from branches are happening for testing or experimentation. These releases should happen with prerelease version numbers.
There’s active development on master and on the different branches, so the versions are being modified all the time. As a result, merges and/or rebases are extremely hard due to the conflicts in the version numbers.
Proposed solution
There should be a way to publish prerelease versions without modifications to package.json
files. This way, only the regular publishes on master will modify the versions in manifests and conflicts will never happen.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:19 (18 by maintainers)
Top Results From Across the Web
Releasing prerelease versions without modifying package ...
There should be a way to publish prerelease versions without modifications to package.json files. This way, only the regular publishes on master ...
Read more >How npm handles updates for pre-release packages. - Ru Singh
Go ahead and edit the package.json file, and specify the version you need. Then install the dependencies again. This is usually frowned upon...
Read more >npm install using pre-release versions - node.js - Stack Overflow
i want to use pre-release versions in my package.json to get some dependencies in the latest version (containing als pre-releases) but for ...
Read more >Frequently Asked Questions - semantic-release
The package.json 's version will be updated by the semantic-release command just before publishing to npm ...
Read more >How I established a good release process in JavaScript
json files. Run git log -1 and then git show <commit ha sh> to see the changes. For changing minor version or ...
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 definitely want to do something like this. We documented what we wanted this to look like when we first implemented prereleases in our dictionary but we haven’t got around to actually implementing it.
IIRC, the command we wanted was
changeset pre snapshot <tag>
. It would set all the versions to0.0.0-tag-hash
and update that in all the dependents, publish all the packages to the dist tag that was specified and then undo the changes.❤️ Thanks @ajaymathur