Skip to content

Commit

Permalink
fix(plugin): hotfix ts version condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 31, 2023
1 parent 9e82747 commit 4858616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin/visitors/abstract.visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class AbstractFileVisitor {
factory: ts.NodeFactory | undefined,
program: ts.Program
): ts.SourceFile {
if (major >= 4 && minor < 2) {
if (major <= 4 && minor < 2) {
throw new Error('Nest CLI plugin does not support TypeScript < v4.2');
}
const importEqualsDeclaration: ts.ImportDeclaration =
Expand Down

0 comments on commit 4858616

Please sign in to comment.