Skip to content

Commit

Permalink
chore: upgrade typescript and node versions (#143)
Browse files Browse the repository at this point in the history
* chore: upgrade typescript and node versions

* chore: add changeset
  • Loading branch information
gao-sun authored Dec 21, 2023
1 parent 32c8fc1 commit 8d95e39
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 88 deletions.
12 changes: 12 additions & 0 deletions .changeset/many-tools-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@silverhand/eslint-config-react": major
"@silverhand/ts-config-react": major
"@silverhand/eslint-config": major
"@silverhand/jest-config": major
"@silverhand/ts-config": major
---

upgrade typescript and node versions

- upgrade typescript to 5.3.3
- upgrade node to 20.9.0 (LTS)
9 changes: 9 additions & 0 deletions .changeset/nice-ghosts-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@silverhand/ts-config-react": patch
"@silverhand/ts-config": patch
---

update typescript module configs

- update `module` to `nodenext` to match the new typescript requirement
- update `moduleResolution` to `bundler` and `module` to `esnext` for react typescript config
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"engines": {
"node": "^18.12.0",
"node": "^20.9.0",
"pnpm": "^8.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"postcss": "^8.4.24",
"prettier": "^3.0.0",
"stylelint": "^15.0.0",
"typescript": "^5.0.0"
"typescript": "^5.3.3"
},
"peerDependencies": {
"stylelint": "^15.0.0"
},
"engines": {
"node": "^18.12.0"
"node": "^20.9.0"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/eslint": "^8.40.2",
"eslint": "^8.44.0",
"prettier": "^3.0.0",
"typescript": "^5.0.0"
"typescript": "^5.3.3"
},
"dependencies": {
"@silverhand/eslint-plugin-fp": "^2.5.0",
Expand All @@ -54,7 +54,7 @@
"prettier": "^3.0.0"
},
"engines": {
"node": "^18.12.0"
"node": "^20.9.0"
},
"eslintConfig": {
"extends": "."
Expand Down
6 changes: 3 additions & 3 deletions packages/jest-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"devDependencies": {
"@silverhand/eslint-config": "workspace:^",
"@silverhand/ts-config": "workspace:^",
"@types/node": "18",
"@types/node": "20",
"jest": "^29.0.0",
"prettier": "^3.0.0",
"typescript": "^5.0.0"
"typescript": "^5.3.3"
},
"dependencies": {
"@jest/types": "^29.0.0",
Expand All @@ -40,7 +40,7 @@
"jest": "^29.0.0"
},
"engines": {
"node": "^18.12.0"
"node": "^20.9.0"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
6 changes: 3 additions & 3 deletions packages/ts-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
"prettier": "^3.0.0",
"react": "^18.2.0",
"stylelint": "^15.0.0",
"typescript": "^5.0.0"
"typescript": "^5.3.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
"typescript": "^5.3.3"
},
"engines": {
"node": "^18.12.0"
"node": "^20.9.0"
},
"eslintConfig": {
"extends": "@silverhand/react"
Expand Down
3 changes: 2 additions & 1 deletion packages/ts-config-react/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@silverhand/ts-config/tsconfig.base",
"compilerOptions": {
"moduleResolution": "node",
"module": "esnext",
"moduleResolution": "bundler",
"lib": [
"dom",
"dom.iterable",
Expand Down
6 changes: 3 additions & 3 deletions packages/ts-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"@types/eslint": "^8.40.2",
"eslint": "^8.44.0",
"prettier": "^3.0.0",
"typescript": "^5.0.0"
"typescript": "^5.3.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
"typescript": "^5.3.3"
},
"engines": {
"node": "^18.12.0"
"node": "^20.9.0"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-config/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"module": "esnext",
"module": "nodenext",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
Loading

0 comments on commit 8d95e39

Please sign in to comment.