fail on typing generation errors

This commit is contained in:
Eugene
2026-05-04 17:37:52 +02:00
parent 56908f473c
commit 1f53f00f7e
+6 -3
View File
@@ -3,7 +3,10 @@ import sh from 'shelljs'
import * as vars from './vars.mjs'
import log from 'npmlog'
vars.builtinPlugins.forEach(plugin => {
for (const plugin of vars.builtinPlugins) {
log.info('typings', plugin)
sh.exec(`yarn tsc --project ${plugin}/tsconfig.typings.json`, { fatal: true })
})
const result = sh.exec(`yarn tsc --project ${plugin}/tsconfig.typings.json`)
if (result.code !== 0) {
process.exit(result.code)
}
}