Skip to content

Commit

Permalink
fix: remove github warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Nov 6, 2023
1 parent 6d15be1 commit 9c9863b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/config/ts-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,11 @@ export async function tsPath(root: string, orig: string | undefined, plugin?: Pl
memoizedWarn(
`${plugin?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`,
)

if (plugin?.options.url)
memoizedWarn(
`${plugin?.name} is an ESM module installed from github and cannot be auto-transpiled. Existing compiled source will be used instead.`,
)
return orig
}

// Do not skip ts-node registration if the plugin is linked or installed from github
if (settings.tsnodeEnabled === undefined && isProduction && plugin?.type !== 'link' && !plugin?.options.url) {
// Do not skip ts-node registration if the plugin is linked
if (settings.tsnodeEnabled === undefined && isProduction && plugin?.type !== 'link') {
debug(`Skipping ts-node registration for ${root} because NODE_ENV is NOT "test" or "development"`)
return orig
}
Expand Down

0 comments on commit 9c9863b

Please sign in to comment.