The main purpose of this PR (which stems from #1543, which I'll rebase on this one) is to be able to pack a package into a tarball without having to worry about its version (i.e. without ending up with a packed package that has version 0.0.1).
To do so, I add a version script (which runs as part of pnpm version) that copies the bumped version number of the monorepo into each package's package.json. This allows those package.json files to be committed with their real version numbers instead of the placeholder 0.0.1.
As a side benefit, the Publish packages CI workflow is now a lot shorter and less magical: it just builds the packages and publishes them!
The main purpose of this PR (which stems from #1543, which I'll rebase on this one) is to be able to pack a package into a tarball without having to worry about its version (i.e. without ending up with a packed package that has version
0.0.1
).To do so, I add a
version
script (which runs as part ofpnpm version
) that copies the bumped version number of the monorepo into each package'spackage.json
. This allows thosepackage.json
files to be committed with their real version numbers instead of the placeholder0.0.1
.As a side benefit, the Publish packages CI workflow is now a lot shorter and less magical: it just builds the packages and publishes them!