Skip to content

Commit

Permalink
Update tsconfig.json to extend the Node 16 tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyr committed Feb 26, 2025
1 parent 923525d commit 7499919
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@tsconfig/node16": "^16.1.3",
"@types/jest": "^29.5.14",
"@types/node": "^20.17.16",
"@types/react": "^18.3.18",
Expand Down Expand Up @@ -42,8 +43,7 @@
"ts-jest": "^29.2.5",
"typescript": "^5.6.2"
},
"dependencies": {
},
"dependencies": {},
"peerDependencies": {
"react": ">= 16",
"react-dom": ">= 16"
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
// needed for Jest tests even though we don't use .tsx
"jsx": "react-jsx",
"lib": ["dom", "es2015"],
"module": "CommonJS",
"noImplicitAny": true,
"outDir": "node_package/lib",
"strict": true,
"incremental": true,
"target": "es5"
},
"include": ["node_package/src/**/*"]
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,11 @@
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==

"@tsconfig/node16@^16.1.3":
version "16.1.3"
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-16.1.3.tgz#94c1f4c72e8a6af81cb50b379334887b1a2476de"
integrity sha512-9nTOUBn+EMKO6rtSZJk+DcqsfgtlERGT9XPJ5PRj/HNENPCBY1yu/JEj5wT6GLtbCLBO2k46SeXDaY0pjMqypw==

"@types/babel__core@^7.1.14":
version "7.20.0"
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.0.tgz#61bc5a4cae505ce98e1e36c5445e4bee060d8891"
Expand Down

0 comments on commit 7499919

Please sign in to comment.