Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Oct 7, 2024
1 parent 506b14b commit f881118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const checkIsLegacyTypeScript = () => {
const tsPath = resolve('typescript/package.json', import.meta.url);
const { version } = JSON.parse(fs.readFileSync(fileURLToPath(tsPath), 'utf-8'));
const [major] = version.split('.');
// Only check experimental decorators for TypeScript 5+
// typescript 5+ enable experimentalDecorators by default so we think it's not legacy
return +major < 5;
} catch {
return false;
Expand Down

0 comments on commit f881118

Please sign in to comment.