From cc5d3cba801cb9b108a2d5ba092c00c5035368ec Mon Sep 17 00:00:00 2001 From: frantuma Date: Sun, 27 Sep 2026 13:27:02 +0200 Subject: [PATCH] fix: generate server declarations before CI lint checks --- .github/workflows/build.yml | 4 ++++ .github/workflows/release.yml | 1 + CONTRIBUTING.md | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10a89d1..d56f79d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,6 +66,10 @@ jobs: npm install --package-lock-only --ignore-scripts git diff --exit-code package-lock.json + # The consumer fixture resolves the package exports to generated declarations. + - name: Generate server declarations + run: npm run build:types --workspace=server + - name: Lint and type check run: npm run lint && npm run typescript:check-types diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef4ebdc..cfebd5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,6 +87,7 @@ jobs: run: | set -euo pipefail npm ci + npm run build:types --workspace=server npm run lint npm run typescript:check-types npm run test:tooling diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2fd421d..c332924 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,7 +41,11 @@ bundles first with `npm run build:prod:browser`. ## Verify changes +Generate the server declarations before typed lint and type checks. The standalone +consumer fixture resolves the package name through its published exports map. + ```sh +npm run build:types --workspace=server npm run lint npm run typescript:check-types npm run check:publication