diff --git a/.changeset/vector-style-compiler-ide-metadata.md b/.changeset/vector-style-compiler-ide-metadata.md new file mode 100644 index 00000000..a845151c --- /dev/null +++ b/.changeset/vector-style-compiler-ide-metadata.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/docs/development/CONTRIBUTING.md b/docs/development/CONTRIBUTING.md index 33b2562e..5b2ba146 100644 --- a/docs/development/CONTRIBUTING.md +++ b/docs/development/CONTRIBUTING.md @@ -103,8 +103,8 @@ CI verifies pending changesets with `pnpm changeset status --since=main`. the [release workflow](https://github.com/open-mapsight/mapsight/blob/main/.github/workflows/ci.yml) ( `changesets/action`): -1. Opens or updates a “Version Packages” PR (`pnpm run version-packages`: version bumps, changelogs, and refreshed - starter `@mapsight/*` pins), or +1. Opens or updates a “Version Packages” PR (`pnpm run version-packages`: version bumps, changelogs, refreshed + starter `@mapsight/*` pins, and regenerated vector-style-compiler IDE metadata), or 2. When that PR merges, runs `pnpm run release` (`turbo build` + `changeset publish`) to publish to npm (OIDC — no manual `npm publish` from package directories). diff --git a/package.json b/package.json index 71afb6a4..a26fba1c 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "typecheck:scripts:root": "tsc --noEmit -p scripts/tsconfig.json", "typecheck:scripts:starters": "run-s sync:workspace-mapsight typecheck:scripts:starters:tsc", "typecheck:scripts:starters:tsc": "tsc --noEmit -p starters/tsconfig.json", - "version-packages": "changeset version && pnpm run sync:starter-pins", + "version-packages": "changeset version && pnpm run sync:starter-pins && pnpm --filter @mapsight/vector-style-compiler generate:ide-metadata", "watch": "turbo watch watch", "worktrees:stale": "node scripts/list-stale-worktrees.mts" } diff --git a/packages/vector-style-compiler/docs/IDE_SUPPORT.md b/packages/vector-style-compiler/docs/IDE_SUPPORT.md index 23ba6940..85a78fb3 100644 --- a/packages/vector-style-compiler/docs/IDE_SUPPORT.md +++ b/packages/vector-style-compiler/docs/IDE_SUPPORT.md @@ -97,8 +97,10 @@ pnpm --filter @mapsight/vector-style-compiler generate:ide-metadata ``` The generator creates both editor metadata formats from the same property list. -`pnpm --filter @mapsight/vector-style-compiler build` also regenerates and -copies the files into `dist/`. +Web Types embed the package version from `package.json`, so +`pnpm run version-packages` regenerates this metadata after Changesets bumps +versions. `pnpm --filter @mapsight/vector-style-compiler build` also regenerates +and copies the files into `dist/`. ## Current Limits