Skip to content

Commit 04c832c

Browse files
committed
sdk: Codebuff's fixes so index.d.ts is bundled in dist
1 parent 5bf6772 commit 04c832c

File tree

6 files changed

+1289
-11
lines changed

6 files changed

+1289
-11
lines changed

sdk/scripts/build.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,16 @@ async function build() {
112112
},
113113
],
114114
{
115-
preferredConfigPath: join(import.meta.dir, '..', 'tsconfig.json'),
115+
preferredConfigPath: join(import.meta.dir, '..', 'tsconfig.build.json'),
116116
},
117117
)
118118

119119
await writeFile('dist/index.d.ts', bundle)
120120
await fixDuplicateImports()
121121
console.log(' ✓ Created bundled type definitions')
122122
} catch (error) {
123-
console.warn('⚠ TypeScript declaration bundling failed:', error.message)
123+
console.error('❌ TypeScript declaration bundling failed:', error.message)
124+
process.exit(1)
124125
}
125126

126127
console.log('📂 Copying WASM files for tree-sitter...')

0 commit comments

Comments
 (0)