Skip to content

Commit

Permalink
fix: return tsconfig for previously registered
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 30, 2023
1 parent b64b9d7 commit 8904dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/ts-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ async function loadTSConfig(root: string): Promise<TSConfig | undefined> {
async function registerTSNode(root: string): Promise<TSConfig | undefined> {
const tsconfig = await loadTSConfig(root)
if (!tsconfig) return
if (REGISTERED.has(root)) return tsconfig

if (REGISTERED.has(root)) return
debug('registering ts-node at', root)
const tsNodePath = require.resolve('ts-node', {paths: [root, __dirname]})
debug('ts-node path:', tsNodePath)
Expand Down

0 comments on commit 8904dd2

Please sign in to comment.