Skip to content

Commit efae154

Browse files
alexeyr-cialexeyr
andauthored
Update tsconfig.json to extend a standard one (#1700)
Co-authored-by: Alexey Romanov <[email protected]>
1 parent d80824f commit efae154

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Changes since the last non-beta release.
2222
- Fix obscure errors by introducing FULL_TEXT_ERRORS [PR 1695](https://github.com/shakacode/react_on_rails/pull/1695) by [Romex91](https://github.com/Romex91).
2323
- Disable `esModuleInterop` to increase interoperability [PR 1699](https://github.com/shakacode/react_on_rails/pull/1699) by [alexeyr-ci](https://github.com/alexeyr-ci).
2424

25+
#### Changed
26+
- More up-to-date TS config [PR 1700](https://github.com/shakacode/react_on_rails/pull/1700) by [alexeyr-ci](https://github.com/alexeyr-ci).
27+
2528
### [14.1.1] - 2025-01-15
2629

2730
#### Fixed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"devDependencies": {
1515
"@babel/core": "^7.20.12",
1616
"@babel/preset-env": "^7.20.2",
17+
"@tsconfig/node14": "^14.1.2",
1718
"@types/jest": "^29.5.14",
1819
"@types/node": "^20.17.16",
1920
"@types/react": "^18.3.18",

tsconfig.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2+
"extends": "@tsconfig/node14",
23
"compilerOptions": {
34
"allowJs": true,
45
"esModuleInterop": false,
6+
// needed for Jest tests even though we don't use .tsx
57
"jsx": "react-jsx",
6-
"lib": ["dom", "es2015"],
7-
"module": "CommonJS",
88
"noImplicitAny": true,
99
"outDir": "node_package/lib",
1010
"strict": true,
11-
"incremental": true,
12-
"target": "es5"
11+
"incremental": true
1312
},
1413
"include": ["node_package/src/**/*"]
1514
}

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,11 @@
15931593
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
15941594
integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==
15951595

1596+
"@tsconfig/node14@^14.1.2":
1597+
version "14.1.2"
1598+
resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-14.1.2.tgz#ed84879e927a2f12ae8bb020baa990bd4cc3dabb"
1599+
integrity sha512-1vncsbfCZ3TBLPxesRYz02Rn7SNJfbLoDVkcZ7F/ixOV6nwxwgdhD1mdPcc5YQ413qBJ8CvMxXMFfJ7oawjo7Q==
1600+
15961601
"@types/babel__core@^7.1.14":
15971602
version "7.20.0"
15981603
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.0.tgz#61bc5a4cae505ce98e1e36c5445e4bee060d8891"

0 commit comments

Comments
 (0)