pnpm run publish:versionsThis interactive script will:
- Check for uncommitted changes (will error if any exist)
- Let you select which versions to publish (or all)
- Also includes the full package (@libpg-query/parser)
- Ask for version bump type (patch or minor only)
- Ask if you want to skip the build step (useful if already built)
- Always run tests (even if build is skipped)
- Publish each selected version
- Optionally promote pg17 to latest
pnpm run publish:typesThis interactive script will:
- Check for uncommitted changes (will error if any exist)
- Let you select which versions to publish (or all)
- Ask for version bump type (patch or minor only)
- Build, prepare, and publish each selected version
- Optionally promote pg17 to latest
pnpm run publish:enumsThis interactive script will:
- Check for uncommitted changes (will error if any exist)
- Let you select which versions to publish (or all)
- Ask for version bump type (patch or minor only)
- Build, prepare, and publish each selected version
- Optionally promote pg17 to latest
# Set the version (e.g. 17, 16, 15, etc.)
VERSION=17
cd types/${VERSION}
pnpm version patch
git add . && git commit -m "release: bump @pgsql/types${VERSION} version"
pnpm build
pnpm prepare:types
pnpm publish --tag pg${VERSION}Promote to latest (optional)
# Set the version (e.g. 17, 16, 15, etc.)
VERSION=17
# Promote pg${VERSION} tag to latest
npm dist-tag add @pgsql/types@pg${VERSION} latest- Transforms
@libpg-query/types17→@pgsql/typeswith tagpg17 - Transforms
@libpg-query/types16→@pgsql/typeswith tagpg16 - etc.
# Set the version (e.g. 17, 16, 15, etc.)
VERSION=17
cd enums/${VERSION}
pnpm version patch
git add . && git commit -m "release: bump @pgsql/enums${VERSION} version"
pnpm build
pnpm prepare:enums
pnpm publish --tag pg${VERSION}Promote to latest (optional)
# Set the version (e.g. 17, 16, 15, etc.)
VERSION=17
# Promote pg${VERSION} tag to latest
npm dist-tag add @pgsql/enums@pg${VERSION} latest- Transforms
@libpg-query/enums17→@pgsql/enumswith tagpg17 - Transforms
@libpg-query/enums16→@pgsql/enumswith tagpg16 - etc.
# Set the version (e.g. 17, 16, 15, etc.)
VERSION=17
# Build and publish a specific version
cd versions/${VERSION}
pnpm version patch
git add . && git commit -m "release: bump libpg-query${VERSION} version"
pnpm build
pnpm test
pnpm run publish:pkg- Transforms
@libpg-query/v17→libpg-querywith tagpg17 - Transforms
@libpg-query/v16→libpg-querywith tagpg16 - Uses
x-publish.publishNameandx-publish.distTagfrom package.json - Temporarily modifies package.json during publish, then restores it
npm install libpg-query@pg17 # PostgreSQL 17 specific
npm install libpg-query@pg16 # PostgreSQL 16 specific
npm install libpg-query # Latest/default versioncd full
pnpm version patch
git add . && git commit -m "release: bump @libpg-query/parser version"
pnpm build
pnpm test
pnpm publish --tag pg17npm dist-tag add @libpg-query/parser@pg17 latest- Publishes
@libpg-query/parserwith tagpg17 - Currently based on PostgreSQL 17
- Includes full parser with all features
npm install @libpg-query/parser@pg17 # PostgreSQL 17 specific
npm install @libpg-query/parser # Latest version