From 2131d2a56cfcc3f2446aeaba031dea53c294057a Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 1 Nov 2023 15:43:31 -0600 Subject: [PATCH] fix: merge ts-node opts in reverse --- src/config/ts-node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/ts-node.ts b/src/config/ts-node.ts index 24cbc54cf..28d2ed7a0 100644 --- a/src/config/ts-node.ts +++ b/src/config/ts-node.ts @@ -27,9 +27,9 @@ async function loadTSConfig(root: string): Promise { if (tsconfig.extends) { const {parse} = await import('tsconfck') - const result = await parse(tsconfigPath, {}) + const result = await parse(tsconfigPath) const tsNodeOpts = Object.fromEntries( - (result.extended ?? []).flatMap((e) => Object.entries(e.tsconfig['ts-node'] ?? {})), + (result.extended ?? []).flatMap((e) => Object.entries(e.tsconfig['ts-node'] ?? {})).reverse(), ) TS_CONFIGS[root] = {...result.tsconfig, 'ts-node': tsNodeOpts}