Skip to content

Commit

Permalink
Re-enable TS 4.9 CLI templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Dec 8, 2022
1 parent f5aa7bd commit 980d78f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/lib/cli/src/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,13 @@ export function detectLanguage(packageJson?: PackageJson) {
(!hasDependency(packageJson, '@typescript-eslint/parser') ||
hasDependency(packageJson, '@typescript-eslint/parser', (version) =>
semver.gte(semver.coerce(version), '5.44.0')
)) &&
(!hasDependency(packageJson, 'eslint-plugin-storybook') ||
hasDependency(packageJson, 'eslint-plugin-storybook', (version) =>
semver.gte(semver.coerce(version), '0.6.8')
))
) {
// TODO: switch to TYPESCRIPT once csf-tools and eslint-plugin-storybook support `satisfies` operator
language = SupportedLanguage.TYPESCRIPT_LEGACY;
language = SupportedLanguage.TYPESCRIPT;
} else if (hasDependency(packageJson, 'typescript')) {
language = SupportedLanguage.TYPESCRIPT_LEGACY;
}
Expand Down

0 comments on commit 980d78f

Please sign in to comment.