diff --git a/circuits/package.json b/circuits/package.json index 62dd91c17f..f9d67726a6 100644 --- a/circuits/package.json +++ b/circuits/package.json @@ -7,7 +7,7 @@ "build-test-circuits-c": "bash ./scripts/build_intel.sh", "build-test-circuits-wasm": "bash ./scripts/build_arm.sh", "watch": "tsc --watch", - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "types": "tsc -p tsconfig.json --noEmit", "test": "ts-mocha --exit ts/__tests__/*.test.ts", "test:hasher": "ts-mocha --exit ts/__tests__/Hasher.test.ts", diff --git a/circuits/tsconfig.build.json b/circuits/tsconfig.build.json new file mode 100644 index 0000000000..8425198ea3 --- /dev/null +++ b/circuits/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./build" + }, + "include": ["./ts"], + "exclude": ["**/__tests__/**", "**/__tests__/**/*.test.ts"] +} diff --git a/cli/package.json b/cli/package.json index 84dfcb7865..c3dc1136c3 100644 --- a/cli/package.json +++ b/cli/package.json @@ -7,12 +7,11 @@ "maci-cli": "./build/ts/index.js" }, "files": [ - "ts", "package.json" ], "scripts": { "watch": "tsc --watch", - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "postbuild": "cp package.json ./build", "types": "tsc -p tsconfig.json --noEmit", "test": "nyc ts-mocha --exit tests/**/*.test.ts", diff --git a/cli/tsconfig.build.json b/cli/tsconfig.build.json new file mode 100644 index 0000000000..f2423b9a54 --- /dev/null +++ b/cli/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./build" + }, + "include": ["./ts"], + "files": ["./hardhat.config.ts"] +} diff --git a/contracts/package.json b/contracts/package.json index 784b0400cd..2866c101fc 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -9,7 +9,7 @@ "compileSol": "./scripts/compileSol.sh $1", "moveIntegrationArtifacts": "cp -r artifacts/ ../integrationTests/artifacts", "prebuild": "npm run compileSol", - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "postbuild": "cp -r ./artifacts ./build", "types": "tsc -p tsconfig.json --noEmit", "docs": "hardhat docgen", diff --git a/contracts/tsconfig.build.json b/contracts/tsconfig.build.json new file mode 100644 index 0000000000..4bd4656efc --- /dev/null +++ b/contracts/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./build" + }, + "include": ["./ts", "./typechain-types"], + "files": ["./hardhat.config.ts"] +} diff --git a/core/package.json b/core/package.json index f42d749951..36b26fb143 100644 --- a/core/package.json +++ b/core/package.json @@ -6,7 +6,7 @@ "types": "build/ts/index.d.ts", "scripts": { "watch": "tsc --watch", - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "types": "tsc -p tsconfig.json --noEmit", "test:processMessage": "ts-mocha --exit ts/__tests__/ProcessMessage.test.ts", "test:maciState": "ts-mocha --exit ts/__tests__/MaciState.test.ts", diff --git a/core/tsconfig.build.json b/core/tsconfig.build.json new file mode 100644 index 0000000000..8425198ea3 --- /dev/null +++ b/core/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./build" + }, + "include": ["./ts"], + "exclude": ["**/__tests__/**", "**/__tests__/**/*.test.ts"] +} diff --git a/crypto/package.json b/crypto/package.json index 218b356ea7..e6bf1c7817 100644 --- a/crypto/package.json +++ b/crypto/package.json @@ -5,7 +5,7 @@ "main": "build/ts/index.js", "scripts": { "watch": "tsc --watch", - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "types": "tsc -p tsconfig.json --noEmit", "test": "nyc ts-mocha --exit ts/__tests__/*.test.ts", "test:crypto": "ts-mocha --exit ts/__tests__/Crypto.test.ts", diff --git a/crypto/tsconfig.build.json b/crypto/tsconfig.build.json new file mode 100644 index 0000000000..8425198ea3 --- /dev/null +++ b/crypto/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./build" + }, + "include": ["./ts"], + "exclude": ["**/__tests__/**", "**/__tests__/**/*.test.ts"] +} diff --git a/domainobjs/package.json b/domainobjs/package.json index aa3b346ffd..e961c6e117 100644 --- a/domainobjs/package.json +++ b/domainobjs/package.json @@ -5,7 +5,7 @@ "main": "build/ts/index.js", "scripts": { "watch": "tsc --watch", - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "types": "tsc -p tsconfig.json --noEmit", "test": "nyc ts-mocha --exit ts/__tests__/**.test.ts" }, diff --git a/domainobjs/tsconfig.build.json b/domainobjs/tsconfig.build.json new file mode 100644 index 0000000000..8425198ea3 --- /dev/null +++ b/domainobjs/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./build" + }, + "include": ["./ts"], + "exclude": ["**/__tests__/**", "**/__tests__/**/*.test.ts"] +}