Skip to content

Commit

Permalink
Use lt instead of lte to check TS version for .cts config (#15535)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 31, 2023
1 parent 950c378 commit f213dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-core/src/config/files/module-types.ts
Expand Up @@ -98,7 +98,7 @@ function loadCtsDefault(filepath: string) {
} catch (error) {
if (!hasTsSupport) {
const packageJson = require("@babel/preset-typescript/package.json");
if (semver.lte(packageJson.version, "7.21.4")) {
if (semver.lt(packageJson.version, "7.21.4")) {
console.error(
"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.",
);
Expand Down

0 comments on commit f213dea

Please sign in to comment.