fix(media-store): resolve TypeScript declaration generation build issues

- Switch from pure tsup to hybrid tsup + tsc approach for declaration generation
- Update build script to use 'tsup && tsc --emitDeclarationOnly'
- Disable tsup's DTS generation to avoid conflicts with TypeScript composite projects
- Ensure all component state definitions have proper .d.ts files generated
- Fix build pipeline that was requiring manual dist file modifications

This resolves the fundamental build system issue where TypeScript declarations
weren't being properly generated, eliminating the need for manual dist file edits.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Christian Pillsbury
2025-09-09 07:59:56 -07:00
committed by Christian Pillsbury
co-authored by Claude
parent 3540993534
commit d8809c5abe
2 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
"dist"
],
"scripts": {
"build": "tsup",
"build": "tsup && tsc --emitDeclarationOnly",
"test": "echo \"No tests yet\"",
"clean": "rm -rf dist"
},
+2 -7
View File
@@ -11,11 +11,6 @@ export default defineConfig({
/^@vjs-10\//,
/^[^.]/,
],
// Generate TypeScript declarations with custom config
dts: {
compilerOptions: {
composite: false,
incremental: false,
},
},
// Disable tsup's dts generation - we'll use tsc directly
dts: false,
});