Skip to content

Commit d5a2a71

Browse files
committed
Update tsconfig.json to extend the Node 16 tsconfig
1 parent 923525d commit d5a2a71

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package.json

+2-2
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/node16": "^16.1.3",
1718
"@types/jest": "^29.5.14",
1819
"@types/node": "^20.17.16",
1920
"@types/react": "^18.3.18",
@@ -42,8 +43,7 @@
4243
"ts-jest": "^29.2.5",
4344
"typescript": "^5.6.2"
4445
},
45-
"dependencies": {
46-
},
46+
"dependencies": {},
4747
"peerDependencies": {
4848
"react": ">= 16",
4949
"react-dom": ">= 16"

tsconfig.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
2+
"extends": "@tsconfig/node16/tsconfig.json",
23
"compilerOptions": {
34
"allowJs": true,
45
"esModuleInterop": true,
56
"jsx": "react-jsx",
6-
"lib": ["dom", "es2015"],
7-
"module": "CommonJS",
87
"noImplicitAny": true,
98
"outDir": "node_package/lib",
109
"strict": true,
1110
"incremental": true,
12-
"target": "es5"
1311
},
1412
"include": ["node_package/src/**/*"]
1513
}

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/node16@^16.1.3":
1597+
version "16.1.3"
1598+
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-16.1.3.tgz#94c1f4c72e8a6af81cb50b379334887b1a2476de"
1599+
integrity sha512-9nTOUBn+EMKO6rtSZJk+DcqsfgtlERGT9XPJ5PRj/HNENPCBY1yu/JEj5wT6GLtbCLBO2k46SeXDaY0pjMqypw==
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)