mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
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:
committed by
Christian Pillsbury
co-authored by
Claude
parent
3540993534
commit
d8809c5abe
@@ -16,7 +16,7 @@
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"build": "tsup && tsc --emitDeclarationOnly",
|
||||
"test": "echo \"No tests yet\"",
|
||||
"clean": "rm -rf dist"
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
Reference in New Issue
Block a user