Comments (3)
Thanks for the question Duytan.
I think this falls just slightly outside the scope of syncpack. It's not common to change lots of npm dependencies and then cut a release for publishing immediately, usually syncpack would be run as part of general housekeeping or linting then committed as a change on its own.
This would be tested and then other commits might accumulate such as features or bug fixes etc which are also tested, then once everything passes you would then cut a release – it's at that time that the version number of your own packages would tend to be bumped.
(The Syncpack project uses release-it for this by the way, which is excellent. There are other similar tools too.)
It's possible to create an npm script/build step/workflow/etc of your own which runs syncpack and cuts a release if anything changed, if that's what you wanted to do, but I don't think it is something that should be made part of syncpack itself.
The principle behind my thinking is that syncpack should focus on doing one thing well, then people can slot that in wherever they want to as one step of a bigger workflow.
Sound fair? Let me know what you think, thanks.
from syncpack.
Hi Jamie, thanks for getting to me. Yeah, I see your point. Was thinking it would've been nice to be able to piggy back off the looping that syncpack has already done. Or even better, are there any plans to provide an API so the output could be used?
I'll close this nonetheless. Thanks!
from syncpack.
There is #48 which discusses a Node API, but FYI it's pretty much blocked at the moment, until I hear a good mix of use cases and when and how it would be used. I don't know what the requirements are for it so right now there's not a good justification for doing it. Plus the codebase of syncpack has been changing a lot as people have reported new feature requests or use cases etc. so I'd like it to have stabilised before having to support a Node API.
from syncpack.
Related Issues (20)
- question:(groups): How to ignore minor version mismatches? HOT 1
- Feature Request: Disallow redefining dependencies already defined in the root
- feat(fix): preserve original formatting HOT 1
- fix(update): some available updates are not found HOT 2
- Feature Request: Unformatted or JSON output
- feat(ranges): extend lint-semver-ranges to include specifier types
- TypeError: (0 , minimatch_1.minimatch) is not a function HOT 3
- How are customTypes created? HOT 4
- Assertions on transitive dependencies HOT 3
- feat(groups): allow many dependencies to be interpreted as one HOT 4
- feat(core): add a way to add additional package.json files to the sources read from the monorepo HOT 1
- `syncpack format` orders dependencies differently than npm does HOT 1
- fix(config): add `$schema` property as optional string HOT 1
- Not happy with $pkg in overrides
- question(groups): help with configuring versionGroups HOT 5
- `update` sets all packages to the same version in syncpack 12.3.1 HOT 7
- fix(types): support importing types into CJS projects HOT 3
- syncpack is "updating" the version field of a local package.json HOT 3
- feat(versions): support optional `v` prefix in git semver tags HOT 1
- fix(engines): syncpack 12.x supports node >=18 not >=16 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syncpack.