Skip to content

Commit

Permalink
wip on shared tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Nov 28, 2023
1 parent f58ee95 commit 875dde3
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 78 deletions.
3 changes: 2 additions & 1 deletion packages/1155-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"prettier-plugin-solidity": "^1.1.3",
"@types/node": "^20.1.2",
"tsup": "^7.2.0",
"typescript": "^5.0.4"
"tsconfig": "*",
"typescript": "^5.2.2"
}
}
18 changes: 1 addition & 17 deletions packages/1155-contracts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
{
"extends": "tsconfig/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"baseUrl": ".",
"downlevelIteration": true,
"esModuleInterop": true,
"isolatedModules": true,
"lib": ["es2021"],
"module": "esnext",
"moduleResolution": "node",
"noImplicitAny": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"target": "es2021",
"types": ["node"],
"outDir": "dist"
},
"exclude": ["node_modules/**", "dist/**"],
Expand Down
1 change: 1 addition & 0 deletions packages/protocol-deployments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"solady": "^0.0.132",
"tsup": "^7.2.0",
"tsx": "^3.13.0",
"tsconfig": "*",
"typescript": "^5.2.2"
}
}
18 changes: 1 addition & 17 deletions packages/protocol-deployments/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
{
"extends": "tsconfig/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"baseUrl": ".",
"downlevelIteration": true,
"esModuleInterop": true,
"isolatedModules": true,
"lib": ["es2021"],
"module": "esnext",
"moduleResolution": "node",
"noImplicitAny": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"target": "es2021",
"types": ["node"],
"outDir": "dist"
},
"exclude": ["node_modules/**", "dist/**"],
Expand Down
1 change: 1 addition & 0 deletions packages/protocol-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"viem": "^1.16.6"
},
"devDependencies": {
"tsconfig": "*",
"typescript": "^5.2.2",
"vite": "4.5.0",
"vitest": "0.34.6"
Expand Down
19 changes: 2 additions & 17 deletions packages/protocol-sdk/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
{
"extends": "tsconfig/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"baseUrl": ".",
"downlevelIteration": true,
"esModuleInterop": true,
"isolatedModules": true,
"lib": ["es2021", "DOM"],
"module": "esnext",
"moduleResolution": "node",
"noImplicitAny": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"target": "es2021",
"types": ["node"],
"baseUrl": ".",
"outDir": "dist"
},
"exclude": ["node_modules/**", "dist/**"],
Expand Down
9 changes: 9 additions & 0 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "tsconfig",
"version": "0.0.0",
"private": true,
"license": "MIT",
"publishConfig": {
"access": "public"
}
}
21 changes: 21 additions & 0 deletions packages/tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"allowJs": true,
"downlevelIteration": true,
"esModuleInterop": true,
"isolatedModules": true,
"lib": ["es2021"],
"module": "esnext",
"moduleResolution": "node",
"noImplicitAny": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"target": "es2021",
"types": ["node"]
}
}
27 changes: 1 addition & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -746,16 +746,6 @@
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.3.tgz#9a726e116beb26c24f1ccd6850201e1246122e04"
integrity sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==

"@types/strip-bom@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/strip-bom/-/strip-bom-3.0.0.tgz#14a8ec3956c2e81edb7520790aecf21c290aebd2"
integrity sha512-xevGOReSYGM7g/kUBZzPqCrR/KYAo+F0yiPc85WFTJa0MSLtyFTVTU6cJu/aV4mid7IffDIWqo69THF2o4JiEQ==

"@types/[email protected]":
version "0.0.30"
resolved "https://registry.yarnpkg.com/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz#9aa30c04db212a9a0649d6ae6fd50accc40748a1"
integrity sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==

"@types/ws@^8.5.5":
version "8.5.6"
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.6.tgz#e9ad51f0ab79b9110c50916c9fcbddc36d373065"
Expand Down Expand Up @@ -3688,11 +3678,6 @@ strip-indent@^3.0.0:
dependencies:
min-indent "^1.0.0"

strip-json-comments@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==

strip-json-comments@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
Expand Down Expand Up @@ -3817,16 +3802,6 @@ ts-interface-checker@^0.1.9:
resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699"
integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==

tsconfig@*:
version "7.0.0"
resolved "https://registry.yarnpkg.com/tsconfig/-/tsconfig-7.0.0.tgz#84538875a4dc216e5c4a5432b3a4dec3d54e91b7"
integrity sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==
dependencies:
"@types/strip-bom" "^3.0.0"
"@types/strip-json-comments" "0.0.30"
strip-bom "^3.0.0"
strip-json-comments "^2.0.0"

tslib@^2.0.3:
version "2.6.2"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
Expand Down Expand Up @@ -3994,7 +3969,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==

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

0 comments on commit 875dde3

Please sign in to comment.