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 {