Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Feb 11, 2025
1 parent 84e8e73 commit 04fdacb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/shiki-twoslash/src/node/transformerTwoslashFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ export const transformerTwoslashFactory = async (
const shouldThrow =
// respect user option
options.throws ??
// ci env
process.env.CI ??
// production env
process.env.NODE_ENV === 'production'
// in CI or production mode
(process.env.CI || process.env.NODE_ENV === 'production')

const onError = (error: unknown, code: string): string => {
logger.error(
Expand Down

0 comments on commit 04fdacb

Please sign in to comment.