From 3376ef179f0c620a92125b841bd682005e5794b5 Mon Sep 17 00:00:00 2001 From: Jack Herrington Date: Wed, 2 Dec 2026 17:42:40 -0800 Subject: [PATCH 1/2] fix(ci): emit onboarding.css to dist so react-onboarding publint passes The ./styles.css export's publishConfig points at ./dist/onboarding.css, but the build never copied it there. Add tsdown copy (matching cms-ui-react). Co-Authored-By: Claude Opus 4.8 (1M context) --- onboarding/packages/react/tsdown.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/onboarding/packages/react/tsdown.config.ts b/onboarding/packages/react/tsdown.config.ts index 89b271ae..a2f86822 100644 --- a/onboarding/packages/react/tsdown.config.ts +++ b/onboarding/packages/react/tsdown.config.ts @@ -8,4 +8,7 @@ export default defineConfig({ dts: true, sourcemap: true, clean: true, + // Ship the stylesheet the `./styles.css` export points at (publishConfig → + // ./dist/onboarding.css), matching @tanstack/cms-ui-react. + copy: [{ from: 'src/onboarding.css', to: 'dist' }], }) From 64c39826dd4acf3bb8e2d121719599e7124b1391 Mon Sep 17 00:00:00 2001 From: Jack Herrington Date: Wed, 2 Dec 2026 17:44:38 -0800 Subject: [PATCH 2/2] fix(ci): stop wp-vs-tanstack test:lib hanging on the Vite server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example has no unit tests, so `vitest run` loaded the app's TanStack-Start vite.config, which errored (`module is not defined`) and started a server that never closed — 'close timed out after 10000ms'. Add a standalone vitest.config with passWithNoTests and no app plugins. Vitest prefers vitest.config over vite.config, so the hang and the CJS-in-ESM error both go away. Co-Authored-By: Claude Opus 4.8 (1M context) --- examples/wp-vs-tanstack/vitest.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/wp-vs-tanstack/vitest.config.ts diff --git a/examples/wp-vs-tanstack/vitest.config.ts b/examples/wp-vs-tanstack/vitest.config.ts new file mode 100644 index 00000000..40bcbd6a --- /dev/null +++ b/examples/wp-vs-tanstack/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineConfig } from 'vitest/config' + +// This example has no unit tests (it's a WP-vs-TanStack comparison app). Use a +// standalone vitest config so `vitest run` doesn't load the app's Start/Vite +// plugins — which start a server that never closes and hang teardown. +export default defineConfig({ + test: { + name: 'wp-vs-tanstack', + environment: 'node', + passWithNoTests: true, + include: ['tests/**/*.test.ts', 'src/**/*.test.ts'], + }, +})