Skip to content

Commit

Permalink
Relax the typescript version for localize-tools (#3800)
Browse files Browse the repository at this point in the history
Fixes #3739

By relaxing the typescript version from ~4.7.4 to ^4.7.4, we allow it to use 4.8 and 4.9 as well. This fixes the problem with localize-tools where it uses typescript 4.7, but the project used 4.8 or 4.9. This breaks because of breaking changes between 4.7 and greater.

Note: so 5.0 is not valid here. I'm not sure whether we want to allow that yet.
  • Loading branch information
jpzwarte committed Apr 12, 2023
1 parent 32cd762 commit c5add75
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-rockets-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit/localize-tools': patch
---

Relax the typescript version for compatibility with typescript > 4.7 && < 5.0
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/localize-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"minimist": "^1.2.5",
"parse5": "^6.0.1",
"source-map-support": "^0.5.19",
"typescript": "~4.7.4"
"typescript": "^4.7.4"
},
"devDependencies": {
"@lit-labs/ssr": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"dependencies": {
"ts-clone-node": "^1.0.0",
"typescript": "~4.7.4"
"typescript": "^4.7.4"
},
"devDependencies": {
"@lit/localize": "^0.11.0",
Expand Down

0 comments on commit c5add75

Please sign in to comment.