From 19f7d290c23bfa57e7b8305e58587cf93c56b6a5 Mon Sep 17 00:00:00 2001 From: Alex Orlow Date: Wed, 12 Jul 2023 23:27:50 -0400 Subject: [PATCH] fix(devops): update package.common to check for correct node version (#1053) * include check for node version 18 or higher on install * update each package to check for node 18 or higher --- yarn-project/acir-simulator/package.json | 5 ++++- yarn-project/archiver/package.json | 5 ++++- yarn-project/aztec-cli/package.json | 5 ++++- yarn-project/aztec-node/package.json | 5 ++++- yarn-project/aztec-rpc/package.json | 5 ++++- yarn-project/aztec-sandbox/package.json | 3 +++ yarn-project/aztec.js/package.json | 5 ++++- yarn-project/circuits.js/package.json | 5 ++++- yarn-project/ethereum/package.json | 3 +++ yarn-project/foundation/package.json | 5 ++++- yarn-project/key-store/package.json | 5 ++++- yarn-project/merkle-tree/package.json | 5 ++++- yarn-project/noir-compiler/package.json | 5 ++++- yarn-project/noir-contracts/package.json | 5 ++++- yarn-project/p2p-bootstrap/package.json | 3 +++ yarn-project/p2p/package.json | 5 ++++- yarn-project/package.common.json | 3 +++ yarn-project/prover-client/package.json | 5 ++++- yarn-project/rollup-provider/package.json | 5 ++++- yarn-project/sequencer-client/package.json | 5 ++++- yarn-project/types/package.json | 5 ++++- yarn-project/world-state/package.json | 5 ++++- 22 files changed, 84 insertions(+), 18 deletions(-) diff --git a/yarn-project/acir-simulator/package.json b/yarn-project/acir-simulator/package.json index d7e6e09bbe4..b36ec1b4a3e 100644 --- a/yarn-project/acir-simulator/package.json +++ b/yarn-project/acir-simulator/package.json @@ -57,5 +57,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/archiver/package.json b/yarn-project/archiver/package.json index bb607a7a506..05d716e2f28 100644 --- a/yarn-project/archiver/package.json +++ b/yarn-project/archiver/package.json @@ -65,5 +65,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/aztec-cli/package.json b/yarn-project/aztec-cli/package.json index 80b338ae20c..731fb0fb5de 100644 --- a/yarn-project/aztec-cli/package.json +++ b/yarn-project/aztec-cli/package.json @@ -56,5 +56,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/aztec-node/package.json b/yarn-project/aztec-node/package.json index 4e9a552ed6f..52f842152ee 100644 --- a/yarn-project/aztec-node/package.json +++ b/yarn-project/aztec-node/package.json @@ -57,5 +57,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/aztec-rpc/package.json b/yarn-project/aztec-rpc/package.json index 976e6e52182..69fc5367425 100644 --- a/yarn-project/aztec-rpc/package.json +++ b/yarn-project/aztec-rpc/package.json @@ -61,5 +61,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/aztec-sandbox/package.json b/yarn-project/aztec-sandbox/package.json index b6f33e25392..65001cb5d12 100644 --- a/yarn-project/aztec-sandbox/package.json +++ b/yarn-project/aztec-sandbox/package.json @@ -55,5 +55,8 @@ }, "testRegex": "./src/.*\\.test\\.ts$", "rootDir": "./src" + }, + "engines": { + "node": ">=18" } } diff --git a/yarn-project/aztec.js/package.json b/yarn-project/aztec.js/package.json index ad788d76278..f57ce75f24f 100644 --- a/yarn-project/aztec.js/package.json +++ b/yarn-project/aztec.js/package.json @@ -52,5 +52,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/circuits.js/package.json b/yarn-project/circuits.js/package.json index 5fe5d820fcf..d854c2dd54e 100644 --- a/yarn-project/circuits.js/package.json +++ b/yarn-project/circuits.js/package.json @@ -73,5 +73,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/ethereum/package.json b/yarn-project/ethereum/package.json index 53a00584dce..85494bbea9a 100644 --- a/yarn-project/ethereum/package.json +++ b/yarn-project/ethereum/package.json @@ -53,5 +53,8 @@ }, "testRegex": "./src/.*\\.test\\.ts$", "rootDir": "./src" + }, + "engines": { + "node": ">=18" } } diff --git a/yarn-project/foundation/package.json b/yarn-project/foundation/package.json index ac85e9e3bea..0bf838f28f5 100644 --- a/yarn-project/foundation/package.json +++ b/yarn-project/foundation/package.json @@ -100,5 +100,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/key-store/package.json b/yarn-project/key-store/package.json index d34f2446348..5661bdb015f 100644 --- a/yarn-project/key-store/package.json +++ b/yarn-project/key-store/package.json @@ -50,5 +50,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/merkle-tree/package.json b/yarn-project/merkle-tree/package.json index abca7b8b1b0..8e0dd5e5ad9 100644 --- a/yarn-project/merkle-tree/package.json +++ b/yarn-project/merkle-tree/package.json @@ -54,5 +54,8 @@ "!dest/test", "!src/test" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/noir-compiler/package.json b/yarn-project/noir-compiler/package.json index b2d5969e4f1..de5c3cb3fbd 100644 --- a/yarn-project/noir-compiler/package.json +++ b/yarn-project/noir-compiler/package.json @@ -57,5 +57,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/noir-contracts/package.json b/yarn-project/noir-contracts/package.json index 6d6d007c9fc..674a065090c 100644 --- a/yarn-project/noir-contracts/package.json +++ b/yarn-project/noir-contracts/package.json @@ -59,5 +59,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/p2p-bootstrap/package.json b/yarn-project/p2p-bootstrap/package.json index 82cdbff08bd..e4abbea1d1e 100644 --- a/yarn-project/p2p-bootstrap/package.json +++ b/yarn-project/p2p-bootstrap/package.json @@ -51,5 +51,8 @@ }, "testRegex": "./src/.*\\.test\\.ts$", "rootDir": "./src" + }, + "engines": { + "node": ">=18" } } diff --git a/yarn-project/p2p/package.json b/yarn-project/p2p/package.json index 26790221925..4e326d2f783 100644 --- a/yarn-project/p2p/package.json +++ b/yarn-project/p2p/package.json @@ -66,5 +66,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/package.common.json b/yarn-project/package.common.json index b92459496ab..e0040fb0114 100644 --- a/yarn-project/package.common.json +++ b/yarn-project/package.common.json @@ -9,6 +9,9 @@ "formatting:fix": "run -T prettier -w ./src", "test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --passWithNoTests" }, + "engines":{ + "node":">=18" + }, "files": ["dest", "src", "!*.test.*"], "types": "./dest/index.d.ts", "devDependencies": { diff --git a/yarn-project/prover-client/package.json b/yarn-project/prover-client/package.json index be2d758ef36..ff998079c9c 100644 --- a/yarn-project/prover-client/package.json +++ b/yarn-project/prover-client/package.json @@ -48,5 +48,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/rollup-provider/package.json b/yarn-project/rollup-provider/package.json index aaeef3ec6c6..ff106a7e9d3 100644 --- a/yarn-project/rollup-provider/package.json +++ b/yarn-project/rollup-provider/package.json @@ -55,5 +55,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/sequencer-client/package.json b/yarn-project/sequencer-client/package.json index e33696631e5..9c48effac97 100644 --- a/yarn-project/sequencer-client/package.json +++ b/yarn-project/sequencer-client/package.json @@ -71,5 +71,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/types/package.json b/yarn-project/types/package.json index ed77c737ec1..2a15e2dec1c 100644 --- a/yarn-project/types/package.json +++ b/yarn-project/types/package.json @@ -55,5 +55,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } } diff --git a/yarn-project/world-state/package.json b/yarn-project/world-state/package.json index 4fce83e365b..2b83955d251 100644 --- a/yarn-project/world-state/package.json +++ b/yarn-project/world-state/package.json @@ -50,5 +50,8 @@ "src", "!*.test.*" ], - "types": "./dest/index.d.ts" + "types": "./dest/index.d.ts", + "engines": { + "node": ">=18" + } }