Skip to content

Commit 821d6b8

Browse files
authored
ci: should exit when build-types-check failed (#12378)
1 parent 6e49e52 commit 821d6b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/vite/scripts/checkBuiltTypes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ if (errors.length <= 0) {
5555
)}`
5656
: ''
5757
console.log(
58-
`${colors.cyan(error.file)}:${pos} - importing ${colors.bold(
58+
`${colors.cyan(error.file)}:${pos} - importing from ${colors.bold(
5959
JSON.stringify(error.value),
6060
)} is not allowed in built files`,
6161
)
6262
})
63-
console.log()
63+
64+
process.exit(1)
6465
}
6566

6667
function collectImportSpecifiers(file: string) {

0 commit comments

Comments
 (0)