Skip to content

Commit

Permalink
chore: allow typescript 5 (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
danias authored Jul 24, 2023
1 parent 863fed9 commit c15eacd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "protoc-gen-ts",
"description": "Compile protocol buffers descriptors to Typescript.",
"version": "0.8.6",
"version": "0.8.7",
"license": "MIT",
"author": {
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const response = new plugin.CodeGeneratorResponse({

const [tsVersionMajor, tsVersionMinor] = ts.version.split(".").map(Number);

if (!(tsVersionMajor >= 4 && tsVersionMinor >= 9)) {
if (!(tsVersionMajor >= 5 || (tsVersionMajor >= 4 && tsVersionMinor >= 9))) {
response.error = "protoc-gen-ts requires TypeScript 4.9 or above.";
process.stdout.write(response.serialize());
// will help to flush the stdout buffer.
Expand Down

0 comments on commit c15eacd

Please sign in to comment.