Skip to content

Commit

Permalink
ci: should exit when build-types-check failed (#12378)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Mar 12, 2023
1 parent 6e49e52 commit 821d6b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vite/scripts/checkBuiltTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ if (errors.length <= 0) {
)}`
: ''
console.log(
`${colors.cyan(error.file)}:${pos} - importing ${colors.bold(
`${colors.cyan(error.file)}:${pos} - importing from ${colors.bold(
JSON.stringify(error.value),
)} is not allowed in built files`,
)
})
console.log()

process.exit(1)
}

function collectImportSpecifiers(file: string) {
Expand Down

0 comments on commit 821d6b8

Please sign in to comment.