diff --git a/packages/ui/package.json b/packages/ui/package.json index ebe7434..60383f1 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -240,7 +240,7 @@ "dist" ], "scripts": { - "build": "NODE_OPTIONS='--max-old-space-size=4096' tsup", + "build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist", "dev": "tsup --watch", "test": "vitest run", "test:ui": "vitest --ui", diff --git a/packages/ui/tsup.config.ts b/packages/ui/tsup.config.ts index 2d31e5a..b5533a1 100644 --- a/packages/ui/tsup.config.ts +++ b/packages/ui/tsup.config.ts @@ -47,13 +47,9 @@ entries.push('src/system/hooks/useDitherAnimation.ts'); export default defineConfig({ entry: entries, format: ['esm'], - dts: { - // Reduce memory usage in CI by disabling concurrent workers - // This prevents "JS heap out of memory" errors when building many components - compilerOptions: { - composite: false, - }, - }, + // DTS disabled - using tsc directly to avoid memory issues with rollup-plugin-dts + // See build script: "tsup && tsc --emitDeclarationOnly" + dts: false, clean: true, treeshake: false, // Disable treeshaking to preserve 'use client' splitting: false,