From 71c13e86398ac2f21db6284e8ca0593aab1d283f Mon Sep 17 00:00:00 2001 From: wan9chi Date: Tue, 14 Jul 2026 17:28:06 +0800 Subject: [PATCH] ci(create): assert the monorepo library emits declarations A green `vp run ready` proves the build exited 0, but declaration generation can degrade silently (skipped generator, wrong output location) while the exit code stays clean. Pin the deliverable: after the build, packages/utils/dist/index.d.mts must exist. With the monorepo template now scaffolding TypeScript 7 (#2168), this makes the create jobs an end-to-end regression gate for the native compiler (tsgo) dts path that broke in #2160. Verified against a real local-registry build: `vp pack` emits dist/index.d.mts (not .d.ts) next to the ESM bundle. Co-Authored-By: Claude Fable 5 --- .github/workflows/test-vp-create.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-vp-create.yml b/.github/workflows/test-vp-create.yml index cc69e026c4..6ecdfeb416 100644 --- a/.github/workflows/test-vp-create.yml +++ b/.github/workflows/test-vp-create.yml @@ -134,7 +134,14 @@ jobs: - name: monorepo create-args: vite:monorepo --directory test-project template-args: '' - verify-command: vp run ready + # The trailing check pins the dts deliverable: the utils library + # builds with `vp pack` and TypeScript 7, so a green `vp run ready` + # alone could still ship a type-less package if declaration + # generation is silently skipped. tsdown emits `index.d.mts` next + # to the ESM bundle. + verify-command: | + vp run ready + test -f packages/utils/dist/index.d.mts verify-migration: 'false' - name: application create-args: vite:application --directory test-project