mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 02:34:19 -05:00
fail on typing generation errors
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user