TODO
- update the @pgsql/types for each
- publish setup with name proxy
If your goal is to do something cool with dist-tags, like publishing multiple versions under the same package name (e.g., libpg-query) with different tags (latest, next, legacy, etc.), here's how you can manage it cleanly:
-
Keep one package name per workspace (e.g.,
libpg-query/) -
Structure your versions like:
libpg-query/ βββ versions/ βββ v15/ βββ v16/ βββ v17/ -
In your build scripts:
- Dynamically generate a
package.jsonwith the appropriate version anddist-tagfor each build. - Use
pnpm packto build tarballs. - Use
pnpm publish --tag <dist-tag>to publish each version manually with itsdist-tag.
- Dynamically generate a
cd versions/v17
pnpm build
pnpm publish --tag v17You can then npm install libpg-query@v17, @v16, etc., via tags, while keeping only one name.