Closed keyz closed 6 months ago
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": "0.0.0"
to the package.
Released in 12.1.0.
👋 If anyone reading this finds syncpack useful, please tell people about it.
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