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'], + }, +}) 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' }], })