Skip to content

Commit

Permalink
chore(tsconfig): specify included files during dev (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux authored Oct 13, 2022
1 parent ddab4e4 commit 39c2055
Show file tree
Hide file tree
Showing 45 changed files with 74 additions and 69 deletions.
3 changes: 1 addition & 2 deletions packages/advanced-logic/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../currency/tsconfig.build.json" },
{ "path": "../types/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/advanced-logic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"extends": "../../tsconfig",
"compilerOptions": {
"types": ["node", "jest"]
}
},
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/currency/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*", "./src/aggregators/*.json"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "scripts/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" }
Expand Down
3 changes: 2 additions & 1 deletion packages/currency/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"extends": "../../tsconfig",
"compilerOptions": {
"esModuleInterop": true
}
},
"include": ["src/", "src/aggregators/*.json", "scripts/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/data-access/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*", "./src/aggregators/*.json"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/data-access/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/data-format/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*", "./src/format/address.json", "./src/format/**/*.json"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"]
}
3 changes: 2 additions & 1 deletion packages/data-format/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"extends": "../../tsconfig",
"compilerOptions": {
"resolveJsonModule": true
}
},
"include": ["src/", "src/format/**/*.json", "test/"]
}
3 changes: 1 addition & 2 deletions packages/epk-decryption/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/epk-decryption/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/epk-signature/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" }
Expand Down
3 changes: 2 additions & 1 deletion packages/epk-signature/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/ethereum-storage/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "."
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" },
Expand Down
4 changes: 1 addition & 3 deletions packages/ethereum-storage/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"resolveJsonModule": true
}
"include": ["src/", "test/"]
}
3 changes: 2 additions & 1 deletion packages/integration-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["test/"]
}
3 changes: 1 addition & 2 deletions packages/multi-format/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [{ "path": "../types/tsconfig.build.json" }]
}
3 changes: 2 additions & 1 deletion packages/multi-format/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/payment-detection/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../currency/tsconfig.build.json" },
{ "path": "../types/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/payment-detection/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/payment-processor/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/payment-processor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/prototype-estimator/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../data-access/tsconfig.build.json" },
{ "path": "../epk-signature/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/prototype-estimator/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/request-client.js/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../advanced-logic/tsconfig.build.json" },
{ "path": "../currency/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/request-client.js/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/request-logic/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../advanced-logic/tsconfig.build.json" },
{ "path": "../multi-format/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/request-logic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/request-node/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../data-access/tsconfig.build.json" },
{ "path": "../ethereum-storage/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/request-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"extends": "../../tsconfig",
"compilerOptions": {
"esModuleInterop": true
}
},
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/smart-contracts/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "."
},
"include": ["src/**/*", "src/**/*.json", "scripts", "hardhat.config.ts", "scripts-create2"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../currency/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" }
Expand Down
10 changes: 9 additions & 1 deletion packages/smart-contracts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
"extends": "../../tsconfig",
"compilerOptions": {
"resolveJsonModule": true
}
},
"include": [
"src/",
"src/lib/artifacts/**/*.json",
"test/",
"scripts/",
"scripts-create2/",
"hardhat.config.ts"
]
}
3 changes: 1 addition & 2 deletions packages/thegraph-data-access/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [{ "path": "../types/tsconfig.build.json" }]
}
3 changes: 2 additions & 1 deletion packages/thegraph-data-access/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/toolbox/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../epk-signature/tsconfig.build.json" },
{ "path": "../request-client.js/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/toolbox/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"compilerOptions": {
"esModuleInterop": true,
"lib": ["ES2019"]
}
},
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/transaction-manager/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/transaction-manager/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/types/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"]
}
3 changes: 2 additions & 1 deletion packages/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"extends": "../../tsconfig",
"compilerOptions": {
"importHelpers": false
}
},
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/usage-examples/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../data-access/tsconfig.build.json" },
{ "path": "../epk-decryption/tsconfig.build.json" },
Expand Down
3 changes: 2 additions & 1 deletion packages/usage-examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/utils/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [{ "path": "../types/tsconfig.build.json" }]
}
3 changes: 2 additions & 1 deletion packages/utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}
3 changes: 1 addition & 2 deletions packages/web3-signature/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"],
"exclude": ["test/", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../utils/tsconfig.build.json" }
Expand Down
3 changes: 2 additions & 1 deletion packages/web3-signature/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig"
"extends": "../../tsconfig",
"include": ["src/", "test/"]
}

0 comments on commit 39c2055

Please sign in to comment.