From b349b3234c62357ab4c92675f6678117f60f8ee6 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 8 Jan 2025 17:36:14 +0100 Subject: [PATCH] chore(scripts/diff-features): remove unnecessary ts-node fallback --- scripts/diff-features.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/scripts/diff-features.ts b/scripts/diff-features.ts index bcfdeab8f9078b..27822d8f01cfc0 100644 --- a/scripts/diff-features.ts +++ b/scripts/diff-features.ts @@ -174,15 +174,9 @@ const enumerateFeatures = (ref = 'HEAD', quiet = false): string[] => { // If the clean install fails, proceed anyways } - try { - execSync( - `npx tsx --no-warnings=ExperimentalWarning ./scripts/enumerate-features.ts --data-from=${worktree}`, - ); - } catch (e) { - execSync( - `node --loader=ts-node/esm --no-warnings=ExperimentalWarning ./scripts/enumerate-features.ts --data-from=${worktree}`, - ); - } + execSync( + `npx tsx --no-warnings=ExperimentalWarning ./scripts/enumerate-features.ts --data-from=${worktree}`, + ); return JSON.parse(fs.readFileSync('.features.json', { encoding: 'utf-8' })); } finally {