diff --git a/packages/autocertifier-client/tsconfig.generated.json b/packages/autocertifier-client/tsconfig.generated.json new file mode 100644 index 0000000000..4ce2cee0f2 --- /dev/null +++ b/packages/autocertifier-client/tsconfig.generated.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noImplicitOverride": false + }, + "include": [ + "generated" + ], + "exclude": [] +} diff --git a/packages/autocertifier-client/tsconfig.json b/packages/autocertifier-client/tsconfig.json index ce0f5b1ea2..9bb9cf3b51 100644 --- a/packages/autocertifier-client/tsconfig.json +++ b/packages/autocertifier-client/tsconfig.json @@ -1,14 +1,13 @@ { "extends": "../../tsconfig.node.json", "compilerOptions": { - "outDir": "dist", - "noImplicitOverride": false + "outDir": "dist" }, "include": [ - "src", - "generated" + "src" ], "references": [ - { "path": "../utils" } + { "path": "../utils" }, + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/autocertifier-server/tsconfig.json b/packages/autocertifier-server/tsconfig.json index 50a2bf5878..c2b5432116 100644 --- a/packages/autocertifier-server/tsconfig.json +++ b/packages/autocertifier-server/tsconfig.json @@ -8,9 +8,9 @@ "bin" ], "references": [ + { "path": "../utils" }, { "path": "../autocertifier-client" }, - { "path": "../dht" }, { "path": "../proto-rpc" }, - { "path": "../utils" } + { "path": "../dht" } ] } diff --git a/packages/cli-tools/tsconfig.json b/packages/cli-tools/tsconfig.json index b929f67a94..4fcb1b93e0 100644 --- a/packages/cli-tools/tsconfig.json +++ b/packages/cli-tools/tsconfig.json @@ -10,9 +10,9 @@ "bin" ], "references": [ + { "path": "../utils" }, { "path": "../dht" }, - { "path": "../sdk" }, { "path": "../trackerless-network" }, - { "path": "../utils" } + { "path": "../sdk" } ] } diff --git a/packages/dht/package.json b/packages/dht/package.json index 756b4c18d1..4df36bf7a2 100644 --- a/packages/dht/package.json +++ b/packages/dht/package.json @@ -26,7 +26,7 @@ "postbuild": "./scripts/postbuild.sh", "build": "tsc -b", "build-browser": "webpack --mode=development --progress", - "check": "tsc -p tsconfig.jest.json", + "check": "tsc -b tsconfig.jest.json", "clean": "jest --clearCache || true; rm -rf dist generated *.tsbuildinfo node_modules/.cache || true", "eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'", "test": "npm run test-unit && npm run test-integration && npm run test-end-to-end", diff --git a/packages/dht/test/unit/PeerManager.test.ts b/packages/dht/test/unit/PeerManager.test.ts index 43f28b3601..ba744d6445 100644 --- a/packages/dht/test/unit/PeerManager.test.ts +++ b/packages/dht/test/unit/PeerManager.test.ts @@ -17,7 +17,7 @@ const createDhtNodeRpcRemote = ( ) => { const remote = new class extends DhtNodeRpcRemote { // eslint-disable-next-line class-methods-use-this - async ping(): Promise { + override async ping(): Promise { return !pingFailures.has(toNodeId(peerDescriptor)) } }(localPeerDescriptor, peerDescriptor, undefined as any, new MockRpcCommunicator()) diff --git a/packages/dht/test/utils/utils.ts b/packages/dht/test/utils/utils.ts index 1cc9db2fbc..fcd6c005aa 100644 --- a/packages/dht/test/utils/utils.ts +++ b/packages/dht/test/utils/utils.ts @@ -62,7 +62,7 @@ export const createMockRingNode = async ( rpcRequestTimeout: 5000 } const node = new class extends DhtNode { - async stop(): Promise { + override async stop(): Promise { await super.stop() await mockConnectionManager.stop() } @@ -90,7 +90,7 @@ export const createMockConnectionDhtNode = async ( rpcRequestTimeout: 5000 } const node = new class extends DhtNode { - async stop(): Promise { + override async stop(): Promise { await super.stop() await mockConnectionManager.stop() } diff --git a/packages/dht/tsconfig.generated.json b/packages/dht/tsconfig.generated.json new file mode 100644 index 0000000000..4ce2cee0f2 --- /dev/null +++ b/packages/dht/tsconfig.generated.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noImplicitOverride": false + }, + "include": [ + "generated" + ], + "exclude": [] +} diff --git a/packages/dht/tsconfig.jest.json b/packages/dht/tsconfig.jest.json index 12d9bf6074..033d864c42 100644 --- a/packages/dht/tsconfig.jest.json +++ b/packages/dht/tsconfig.jest.json @@ -1,13 +1,12 @@ { "extends": "../../tsconfig.jest.json", - "compilerOptions": { - "noImplicitOverride": false - }, "include": [ "src", - "generated", "test", "package.json", "scripts" + ], + "references": [ + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/dht/tsconfig.json b/packages/dht/tsconfig.json index ce6ed8db32..e5441a57dd 100644 --- a/packages/dht/tsconfig.json +++ b/packages/dht/tsconfig.json @@ -1,19 +1,18 @@ { "extends": "../../tsconfig.node.json", "compilerOptions": { - "outDir": "dist", - "noImplicitOverride": false + "outDir": "dist" }, "include": [ "src", - "generated", "package.json" ], "references": [ - { "path": "../autocertifier-client" }, + { "path": "../utils" }, + { "path": "../proto-rpc" }, { "path": "../cdn-location" }, { "path": "../geoip-location" }, - { "path": "../proto-rpc" }, - { "path": "../utils" } + { "path": "../autocertifier-client" }, + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/proto-rpc/package.json b/packages/proto-rpc/package.json index b1add8f67d..560d3b5d20 100644 --- a/packages/proto-rpc/package.json +++ b/packages/proto-rpc/package.json @@ -21,7 +21,7 @@ "prebuild": "./proto.sh", "build": "tsc -b", "build-browser": "webpack --mode=development --progress", - "check": "./test-proto.sh && tsc -p tsconfig.jest.json", + "check": "./test-proto.sh && tsc -b tsconfig.jest.json", "clean": "jest --clearCache || true; rm -rf dist generated *.tsbuildinfo node_modules/.cache || true", "eslint": "./test-proto.sh && eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'", "test": "./test-proto.sh && npm run test-unit && npm run test-integration", diff --git a/packages/proto-rpc/tsconfig.generated.json b/packages/proto-rpc/tsconfig.generated.json new file mode 100644 index 0000000000..604a619266 --- /dev/null +++ b/packages/proto-rpc/tsconfig.generated.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noImplicitOverride": false + }, + "include": [ + "generated", + "test/proto" + ], + "exclude": [] +} diff --git a/packages/proto-rpc/tsconfig.jest.json b/packages/proto-rpc/tsconfig.jest.json index 94ae917a95..0ee0c983d4 100644 --- a/packages/proto-rpc/tsconfig.jest.json +++ b/packages/proto-rpc/tsconfig.jest.json @@ -1,11 +1,13 @@ { "extends": "../../tsconfig.jest.json", - "compilerOptions": { - "noImplicitOverride": false - }, "include": [ "src", - "generated", "test" + ], + "exclude": [ + "test/proto" + ], + "references": [ + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/proto-rpc/tsconfig.json b/packages/proto-rpc/tsconfig.json index ce0f5b1ea2..9bb9cf3b51 100644 --- a/packages/proto-rpc/tsconfig.json +++ b/packages/proto-rpc/tsconfig.json @@ -1,14 +1,13 @@ { "extends": "../../tsconfig.node.json", "compilerOptions": { - "outDir": "dist", - "noImplicitOverride": false + "outDir": "dist" }, "include": [ - "src", - "generated" + "src" ], "references": [ - { "path": "../utils" } + { "path": "../utils" }, + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 217f96416f..b8028f9d2a 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -36,7 +36,7 @@ "build-browser": "npm run build-browser-development && npm run build-browser-production", "build-browser-development": "NODE_ENV=development webpack --mode=development --progress", "build-browser-production": "NODE_ENV=production webpack --mode=production --progress", - "check": "tsc -p tsconfig.jest.json", + "check": "tsc -b tsconfig.jest.json", "clean": "jest --clearCache || true; rm -rf dist src/generated *.tsbuildinfo node_modules/.cache || true", "eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts,mts}'", "generate-protoc-code": "./proto.sh", diff --git a/packages/sdk/src/identity/EthereumKeyPairIdentity.ts b/packages/sdk/src/identity/EthereumKeyPairIdentity.ts index 0a03c97208..e928eaea41 100644 --- a/packages/sdk/src/identity/EthereumKeyPairIdentity.ts +++ b/packages/sdk/src/identity/EthereumKeyPairIdentity.ts @@ -26,7 +26,7 @@ export class EthereumKeyPairIdentity extends KeyPairIdentity { return signingUtil.createSignature(payload, this.privateKey) } - async getTransactionSigner(rpcProviderSource: RpcProviderSource): Promise { + override async getTransactionSigner(rpcProviderSource: RpcProviderSource): Promise { const primaryProvider = rpcProviderSource.getProvider() return new Wallet(binaryToHex(this.privateKey), primaryProvider) as SignerWithProvider } diff --git a/packages/sdk/tsconfig.generated.json b/packages/sdk/tsconfig.generated.json new file mode 100644 index 0000000000..b0ee61428f --- /dev/null +++ b/packages/sdk/tsconfig.generated.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noImplicitOverride": false + }, + "include": [ + "src/generated" + ], + "exclude": [] +} diff --git a/packages/sdk/tsconfig.jest.json b/packages/sdk/tsconfig.jest.json index 5ba42ad9b4..afb7f0c5f3 100644 --- a/packages/sdk/tsconfig.jest.json +++ b/packages/sdk/tsconfig.jest.json @@ -3,8 +3,7 @@ "compilerOptions": { "lib": ["es2021"], "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "noImplicitOverride": false + "emitDecoratorMetadata": true }, "include": [ "package.json", @@ -16,6 +15,10 @@ "scripts" ], "exclude": [ + "src/generated", "test/exports" + ], + "references": [ + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/sdk/tsconfig.json b/packages/sdk/tsconfig.json index ba668d3702..55522d1c1f 100644 --- a/packages/sdk/tsconfig.json +++ b/packages/sdk/tsconfig.json @@ -5,20 +5,21 @@ "declarationDir": "dist/types", "lib": ["es2021"], "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "noImplicitOverride": false + "emitDecoratorMetadata": true }, "include": [ "src", "src/**/*.json" ], "exclude": [ + "src/generated", "src/exports-esm.mjs" ], "references": [ - { "path": "../dht" }, + { "path": "../utils" }, { "path": "../proto-rpc" }, + { "path": "../dht" }, { "path": "../trackerless-network" }, - { "path": "../utils" } + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/trackerless-network/package.json b/packages/trackerless-network/package.json index 6fb412c92c..626bb580bb 100644 --- a/packages/trackerless-network/package.json +++ b/packages/trackerless-network/package.json @@ -20,7 +20,7 @@ "build": "tsc -b", "build-browser": "webpack --mode=development --progress", "prebuild": "./proto.sh", - "check": "tsc -p tsconfig.jest.json", + "check": "tsc -b tsconfig.jest.json", "clean": "jest --clearCache || true; rm -rf dist generated *.tsbuildinfo node_modules/.cache || true", "coverage": "jest --coverage", "eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'", diff --git a/packages/trackerless-network/tsconfig.generated.json b/packages/trackerless-network/tsconfig.generated.json new file mode 100644 index 0000000000..4ce2cee0f2 --- /dev/null +++ b/packages/trackerless-network/tsconfig.generated.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noImplicitOverride": false + }, + "include": [ + "generated" + ], + "exclude": [] +} diff --git a/packages/trackerless-network/tsconfig.jest.json b/packages/trackerless-network/tsconfig.jest.json index d9593d2105..b024878a4d 100644 --- a/packages/trackerless-network/tsconfig.jest.json +++ b/packages/trackerless-network/tsconfig.jest.json @@ -1,12 +1,11 @@ { "extends": "../../tsconfig.jest.json", - "compilerOptions": { - "noImplicitOverride": false - }, "include": [ "src", - "generated", "package.json", "test" + ], + "references": [ + { "path": "./tsconfig.generated.json" } ] } diff --git a/packages/trackerless-network/tsconfig.json b/packages/trackerless-network/tsconfig.json index 481b69e8de..0933004e01 100644 --- a/packages/trackerless-network/tsconfig.json +++ b/packages/trackerless-network/tsconfig.json @@ -1,17 +1,16 @@ { "extends": "../../tsconfig.node.json", "compilerOptions": { - "outDir": "dist", - "noImplicitOverride": false + "outDir": "dist" }, "include": [ "src", - "generated", "package.json" ], "references": [ - { "path": "../dht" }, + { "path": "../utils" }, { "path": "../proto-rpc" }, - { "path": "../utils" } + { "path": "../dht" }, + { "path": "./tsconfig.generated.json" } ] }