Skip to content

Commit

Permalink
chore(scripts/diff-features): remove unnecessary ts-node fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 8, 2025
1 parent eb5a4fe commit b349b32
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions scripts/diff-features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b349b32

Please sign in to comment.