-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(local): allow missing .version if not depended on #183
Comments
Thanks I'll check it over, it should only happen if it is depended on. https://jamiemason.github.io/syncpack/guide/status-codes/#missinglocalversion |
Running into this same issue now as well. |
I would stay on v11 for now if this is an issue – or add |
version
field
Released in 12.1.0. 👋 If anyone reading this finds syncpack useful, please tell people about it. |
Is there a way to not require a version for all private packages? |
A brief answer as I'm traveling right now but the latest version at https://github.com/JamieMason/syncpack/releases/tag/14.0.0-alpha.1 will warn on missing local versions but otherwise let you continue. Let me know if you need something more than this. |
Description
According to the npm spec, it's fine to omit the
version
field in package.json:Omitting the
version
field is common for leaf packages that won't ever be published, such as "apps" in a monorepo. IMO this change (introduced by v12) feels like a regression.Here's a simple repro. The following
package.json
declares a private package ("app"):Suggested Solution
Relax the policy such that leaf packages (that no one depends on) can omit the
version
fieldHelp Needed
The text was updated successfully, but these errors were encountered: