Skip to content

Commit d4717c6

Browse files
oveddankulkarohan
authored andcommitted
Sharing tsconfig across packages (#359)
* wip on shared tsconfig * update to use shared tsconfig * adding missing config
1 parent 0507f4b commit d4717c6

File tree

9 files changed

+39
-53
lines changed

9 files changed

+39
-53
lines changed

Diff for: packages/1155-contracts/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"prettier-plugin-solidity": "^1.1.3",
5454
"@types/node": "^20.1.2",
5555
"tsup": "^7.2.0",
56-
"typescript": "^5.0.4"
56+
"zoralabs-tsconfig": "*",
57+
"typescript": "^5.2.2"
5758
}
5859
}

Diff for: packages/1155-contracts/tsconfig.json

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
{
2+
"extends": "zoralabs-tsconfig/tsconfig.json",
23
"compilerOptions": {
3-
"allowJs": true,
44
"baseUrl": ".",
5-
"downlevelIteration": true,
6-
"esModuleInterop": true,
7-
"isolatedModules": true,
8-
"lib": ["es2021"],
9-
"module": "esnext",
10-
"moduleResolution": "node",
11-
"noImplicitAny": true,
12-
"noUncheckedIndexedAccess": true,
13-
"noUnusedLocals": true,
14-
"noUnusedParameters": true,
15-
"resolveJsonModule": true,
16-
"skipLibCheck": true,
17-
"strict": true,
18-
"strictNullChecks": true,
19-
"target": "es2021",
20-
"types": ["node"],
215
"outDir": "dist"
226
},
237
"exclude": ["node_modules/**", "dist/**"],

Diff for: packages/protocol-deployments/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"solady": "^0.0.132",
4040
"tsup": "^7.2.0",
4141
"tsx": "^3.13.0",
42+
"zoralabs-tsconfig": "*",
4243
"typescript": "^5.2.2"
4344
}
4445
}

Diff for: packages/protocol-deployments/tsconfig.json

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
{
2+
"extends": "zoralabs-tsconfig/tsconfig.json",
23
"compilerOptions": {
3-
"allowJs": true,
44
"baseUrl": ".",
5-
"downlevelIteration": true,
6-
"esModuleInterop": true,
7-
"isolatedModules": true,
8-
"lib": ["es2021"],
9-
"module": "esnext",
10-
"moduleResolution": "node",
11-
"noImplicitAny": true,
12-
"noUncheckedIndexedAccess": true,
13-
"noUnusedLocals": true,
14-
"noUnusedParameters": true,
15-
"resolveJsonModule": true,
16-
"skipLibCheck": true,
17-
"strict": true,
18-
"strictNullChecks": true,
19-
"target": "es2021",
20-
"types": ["node"],
215
"outDir": "dist"
226
},
237
"exclude": ["node_modules/**", "dist/**"],

Diff for: packages/protocol-sdk/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"viem": "^1.16.6"
2424
},
2525
"devDependencies": {
26+
"zoralabs-tsconfig": "*",
2627
"typescript": "^5.2.2",
2728
"vite": "4.5.0",
2829
"vitest": "0.34.6"

Diff for: packages/protocol-sdk/tsconfig.json

+2-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
{
2+
"extends": "zoralabs-tsconfig/tsconfig.json",
23
"compilerOptions": {
3-
"allowJs": true,
4-
"baseUrl": ".",
5-
"downlevelIteration": true,
6-
"esModuleInterop": true,
7-
"isolatedModules": true,
84
"lib": ["es2021", "DOM"],
9-
"module": "esnext",
10-
"moduleResolution": "node",
11-
"noImplicitAny": true,
12-
"noUncheckedIndexedAccess": true,
13-
"noUnusedLocals": true,
14-
"noUnusedParameters": true,
15-
"resolveJsonModule": true,
16-
"skipLibCheck": true,
17-
"strict": true,
18-
"strictNullChecks": true,
19-
"target": "es2021",
20-
"types": ["node"],
5+
"baseUrl": ".",
216
"outDir": "dist"
227
},
238
"exclude": ["node_modules/**", "dist/**"],

Diff for: packages/tsconfig/package.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "zoralabs-tsconfig",
3+
"version": "0.0.0",
4+
"private": true,
5+
"license": "MIT",
6+
"publishConfig": {
7+
"access": "public"
8+
}
9+
}

Diff for: packages/tsconfig/tsconfig.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"downlevelIteration": true,
5+
"esModuleInterop": true,
6+
"isolatedModules": true,
7+
"lib": ["es2021"],
8+
"module": "esnext",
9+
"moduleResolution": "node",
10+
"noImplicitAny": true,
11+
"noUncheckedIndexedAccess": true,
12+
"noUnusedLocals": true,
13+
"noUnusedParameters": true,
14+
"resolveJsonModule": true,
15+
"skipLibCheck": true,
16+
"strict": true,
17+
"strictNullChecks": true,
18+
"target": "es2021",
19+
"types": ["node"]
20+
}
21+
}

Diff for: yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -3994,7 +3994,7 @@ [email protected]:
39943994
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
39953995
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==
39963996

3997-
typescript@^5.0.4, typescript@^5.2.2:
3997+
typescript@^5.2.2:
39983998
version "5.2.2"
39993999
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
40004000
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==

0 commit comments

Comments
 (0)