diff --git a/packages/api-kit/package.json b/packages/api-kit/package.json index b0bd5a4b8..303df74b8 100644 --- a/packages/api-kit/package.json +++ b/packages/api-kit/package.json @@ -32,7 +32,7 @@ "build": "yarn unbuild && yarn build:esm && yarn build:cjs && yarn build:types", "build:esm": "esbuild ./src/index --format=esm --bundle --packages=external --outdir=dist/esm --out-extension:.js=.mjs", "build:cjs": "esbuild ./src/index --format=cjs --bundle --packages=external --outdir=dist/cjs --out-extension:.js=.cjs", - "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.build.json" + "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json" }, "repository": { "type": "git", diff --git a/packages/api-kit/tsconfig.build.json b/packages/api-kit/tsconfig.build.json index 6abe53b8e..00513d17b 100644 --- a/packages/api-kit/tsconfig.build.json +++ b/packages/api-kit/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "declarationMap": true, "outDir": "dist/src" }, "include": ["src/**/*"], diff --git a/packages/protocol-kit/package.json b/packages/protocol-kit/package.json index c3b7aef3e..ba54458c8 100644 --- a/packages/protocol-kit/package.json +++ b/packages/protocol-kit/package.json @@ -44,7 +44,7 @@ "build": "yarn unbuild && yarn check-safe-deployments && yarn build:esm && yarn build:cjs && yarn build:types", "build:esm": "esbuild ./src/index --format=esm --bundle --packages=external --outdir=dist/esm --out-extension:.js=.mjs", "build:cjs": "esbuild ./src/index --format=cjs --bundle --packages=external --outdir=dist/cjs --out-extension:.js=.cjs", - "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.build.json" + "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json" }, "repository": { "type": "git", diff --git a/packages/protocol-kit/tsconfig.build.json b/packages/protocol-kit/tsconfig.build.json index 6abe53b8e..00513d17b 100644 --- a/packages/protocol-kit/tsconfig.build.json +++ b/packages/protocol-kit/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "declarationMap": true, "outDir": "dist/src" }, "include": ["src/**/*"], diff --git a/packages/relay-kit/package.json b/packages/relay-kit/package.json index 8a438227d..12f92cb29 100644 --- a/packages/relay-kit/package.json +++ b/packages/relay-kit/package.json @@ -28,7 +28,7 @@ "build": "yarn unbuild && yarn build:esm && yarn build:cjs && yarn build:types", "build:esm": "esbuild ./src/index --format=esm --bundle --packages=external --outdir=dist/esm --out-extension:.js=.mjs", "build:cjs": "esbuild ./src/index --format=cjs --bundle --packages=external --outdir=dist/cjs --out-extension:.js=.cjs", - "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.build.json" + "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json" }, "repository": { "type": "git", diff --git a/packages/relay-kit/tsconfig.build.json b/packages/relay-kit/tsconfig.build.json index f9dc6a2e7..fb93df610 100644 --- a/packages/relay-kit/tsconfig.build.json +++ b/packages/relay-kit/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "declarationMap": true, "outDir": "dist/src" }, "include": ["src/**/*"], diff --git a/packages/sdk-starter-kit/package.json b/packages/sdk-starter-kit/package.json index 386123b50..d7d87294f 100644 --- a/packages/sdk-starter-kit/package.json +++ b/packages/sdk-starter-kit/package.json @@ -23,7 +23,7 @@ "build": "yarn unbuild && yarn build:esm && yarn build:cjs && yarn build:types", "build:esm": "esbuild ./src/index --format=esm --bundle --packages=external --outdir=dist/esm --out-extension:.js=.mjs", "build:cjs": "esbuild ./src/index --format=cjs --bundle --packages=external --outdir=dist/cjs --out-extension:.js=.cjs", - "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.build.json", + "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json", "format:check": "prettier --check \"*/**/*.{js,json,md,ts}\"", "format": "prettier --write \"*/**/*.{js,json,md,ts}\"", "test": "jest src --coverage" diff --git a/packages/sdk-starter-kit/tsconfig.build.json b/packages/sdk-starter-kit/tsconfig.build.json index f9dc6a2e7..fb93df610 100644 --- a/packages/sdk-starter-kit/tsconfig.build.json +++ b/packages/sdk-starter-kit/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "declarationMap": true, "outDir": "dist/src" }, "include": ["src/**/*"], diff --git a/packages/testing-kit/package.json b/packages/testing-kit/package.json index d992960d8..062dd1cd5 100644 --- a/packages/testing-kit/package.json +++ b/packages/testing-kit/package.json @@ -25,7 +25,7 @@ "build": "yarn unbuild && hardhat compile && yarn build:esm && yarn build:cjs && yarn build:types", "build:esm": "esbuild ./src/index --format=esm --bundle --packages=external --outdir=dist/esm --out-extension:.js=.mjs", "build:cjs": "esbuild ./src/index --format=cjs --bundle --packages=external --outdir=dist/cjs --out-extension:.js=.cjs", - "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.build.json", + "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json", "deploy": "hardhat deploy", "compile": "hardhat compile", "test": "hardhat test" diff --git a/packages/testing-kit/tsconfig.build.json b/packages/testing-kit/tsconfig.build.json index 0d942e270..5283975a2 100644 --- a/packages/testing-kit/tsconfig.build.json +++ b/packages/testing-kit/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "declarationMap": true, "outDir": "dist/src" }, "include": ["src/**/*"], diff --git a/packages/types-kit/package.json b/packages/types-kit/package.json index 09dca77ec..c83e56702 100644 --- a/packages/types-kit/package.json +++ b/packages/types-kit/package.json @@ -24,7 +24,7 @@ "build": "yarn unbuild && yarn build:esm && yarn build:cjs && yarn build:types", "build:esm": "esbuild ./src/index --format=esm --bundle --packages=external --outdir=dist/esm --out-extension:.js=.mjs", "build:cjs": "esbuild ./src/index --format=cjs --bundle --packages=external --outdir=dist/cjs --out-extension:.js=.cjs", - "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json --declaration --emitDeclarationOnly" + "build:types": "NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.build.json" }, "repository": { "type": "git", diff --git a/packages/types-kit/tsconfig.build.json b/packages/types-kit/tsconfig.build.json index 33b38b245..c4f78f857 100644 --- a/packages/types-kit/tsconfig.build.json +++ b/packages/types-kit/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "declarationMap": true, "outDir": "dist/src" }, "include": ["src/**/*"],