From 3af1caf084131991b9782c956b48adf17273a58b Mon Sep 17 00:00:00 2001 From: Wyatt Barnes Date: Wed, 17 Mar 2021 17:57:20 -0500 Subject: [PATCH] Rename tsc to compile (#3957) * Change 'tsc' command in scripts & lerna run to 'compile' * Update changelog * Undo incorrect rename * Checking if e2e test is deterministic Co-authored-by: Sam Hodak --- CHANGELOG.md | 1 + package.json | 2 +- packages/web3-bzz/package.json | 2 +- packages/web3-core-helpers/package.json | 2 +- packages/web3-core-method/package.json | 2 +- packages/web3-core-promievent/package.json | 2 +- packages/web3-core-requestmanager/package.json | 2 +- packages/web3-core-subscriptions/package.json | 2 +- packages/web3-core/package.json | 2 +- packages/web3-eth-abi/package.json | 2 +- packages/web3-eth-accounts/package.json | 2 +- packages/web3-eth-contract/package.json | 2 +- packages/web3-eth-ens/package.json | 2 +- packages/web3-eth-iban/package.json | 2 +- packages/web3-eth-personal/package.json | 2 +- packages/web3-eth/package.json | 2 +- packages/web3-eth2-beaconchain/package.json | 2 +- packages/web3-eth2-core/package.json | 2 +- packages/web3-net/package.json | 2 +- packages/web3-providers-http/package.json | 2 +- packages/web3-providers-ipc/package.json | 2 +- packages/web3-providers-ws/package.json | 2 +- packages/web3-shh/package.json | 2 +- packages/web3-utils/package.json | 2 +- packages/web3/package.json | 2 +- 25 files changed, 25 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ca2672dbb0..cdaab9d24e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -362,6 +362,7 @@ Released with 1.0.0-beta.37 code base. ### Changed - Unified babel compiler for `web3-eth2-core` and `web3-eth2-beaconchain` (#3892) +- Renamed the `tsc` script in all packages to `compile`; updates the corresponding `lerna run` usage in the main `package.json` (#3894) - moved deprecation warnings to postinstall scripts (#3917) - Upgrade `@chainsafe/geth-dev-assistant` from `0.1.5` to `0.1.9` (#3950) - Replaced hardcoded infura link with Github Secret for some tests (#3943) diff --git a/package.json b/package.json index b5b2199fb8f..057a4038d8f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "scripts": { "version": "npm run build", "postinstall": "npm run bootstrap", - "build": "npm run bootstrap && lerna run tsc && webpack && cp -r ./dist ./packages/web3", + "build": "npm run bootstrap && lerna run compile && webpack && cp -r ./dist ./packages/web3", "publish": "lerna publish", "bootstrap": "lerna bootstrap --hoist", "lint": "jshint *.js packages", diff --git a/packages/web3-bzz/package.json b/packages/web3-bzz/package.json index 4c3db40d729..a7eee9c69eb 100644 --- a/packages/web3-bzz/package.json +++ b/packages/web3-bzz/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types", "postinstall": "echo \"WARNING: the web3-bzz api will be deprecated in the next version\"" }, diff --git a/packages/web3-core-helpers/package.json b/packages/web3-core-helpers/package.json index d3598747cc6..0f2f7e2f99f 100644 --- a/packages/web3-core-helpers/package.json +++ b/packages/web3-core-helpers/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-core-method/package.json b/packages/web3-core-method/package.json index 40a0f6561a9..c124c170438 100644 --- a/packages/web3-core-method/package.json +++ b/packages/web3-core-method/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-core-promievent/package.json b/packages/web3-core-promievent/package.json index 29eeff7992e..b6a79830bfa 100644 --- a/packages/web3-core-promievent/package.json +++ b/packages/web3-core-promievent/package.json @@ -9,7 +9,7 @@ }, "main": "lib/index.js", "scripts": { - "tsc": "tsc -b tsconfig.json" + "compile": "tsc -b tsconfig.json" }, "dependencies": { "eventemitter3": "4.0.4" diff --git a/packages/web3-core-requestmanager/package.json b/packages/web3-core-requestmanager/package.json index 55b64dff7e6..29bedb66c9e 100644 --- a/packages/web3-core-requestmanager/package.json +++ b/packages/web3-core-requestmanager/package.json @@ -9,7 +9,7 @@ }, "main": "lib/index.js", "scripts": { - "tsc": "tsc -b tsconfig.json" + "compile": "tsc -b tsconfig.json" }, "dependencies": { "underscore": "1.9.1", diff --git a/packages/web3-core-subscriptions/package.json b/packages/web3-core-subscriptions/package.json index 9062e8cdab7..a418ed28056 100644 --- a/packages/web3-core-subscriptions/package.json +++ b/packages/web3-core-subscriptions/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-core/package.json b/packages/web3-core/package.json index b77ec3213f3..615285860d7 100644 --- a/packages/web3-core/package.json +++ b/packages/web3-core/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth-abi/package.json b/packages/web3-eth-abi/package.json index 9dfffd1b6c8..1ccd8dc2a19 100644 --- a/packages/web3-eth-abi/package.json +++ b/packages/web3-eth-abi/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth-accounts/package.json b/packages/web3-eth-accounts/package.json index a7c7d0509a9..2213c637b8b 100644 --- a/packages/web3-eth-accounts/package.json +++ b/packages/web3-eth-accounts/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth-contract/package.json b/packages/web3-eth-contract/package.json index 296fd0a23af..94723cb21f8 100644 --- a/packages/web3-eth-contract/package.json +++ b/packages/web3-eth-contract/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth-ens/package.json b/packages/web3-eth-ens/package.json index 93f780b43a1..9046c8f1ee8 100644 --- a/packages/web3-eth-ens/package.json +++ b/packages/web3-eth-ens/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth-iban/package.json b/packages/web3-eth-iban/package.json index 8834dbc82ca..0d8bfb97adb 100644 --- a/packages/web3-eth-iban/package.json +++ b/packages/web3-eth-iban/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth-personal/package.json b/packages/web3-eth-personal/package.json index 053dbb696f1..1caf26a0646 100644 --- a/packages/web3-eth-personal/package.json +++ b/packages/web3-eth-personal/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth/package.json b/packages/web3-eth/package.json index 90c0f05c06a..a32a7524534 100644 --- a/packages/web3-eth/package.json +++ b/packages/web3-eth/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-eth2-beaconchain/package.json b/packages/web3-eth2-beaconchain/package.json index 1b597d98e0a..d8c815608c1 100644 --- a/packages/web3-eth2-beaconchain/package.json +++ b/packages/web3-eth2-beaconchain/package.json @@ -10,7 +10,7 @@ "types": "types.ts", "scripts": { "test": "jest", - "tsc": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline", + "compile": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline", "type-check": "tsc --noEmit", "type-check:watch": "npm run type-check -- --watch" }, diff --git a/packages/web3-eth2-core/package.json b/packages/web3-eth2-core/package.json index bc07b286110..01715b7d561 100644 --- a/packages/web3-eth2-core/package.json +++ b/packages/web3-eth2-core/package.json @@ -10,7 +10,7 @@ "types": "types.ts", "scripts": { "test": "jest", - "tsc": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline", + "compile": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline", "type-check": "tsc --noEmit", "type-check:watch": "npm run type-check -- --watch" }, diff --git a/packages/web3-net/package.json b/packages/web3-net/package.json index d97c48093a9..588f88374b5 100644 --- a/packages/web3-net/package.json +++ b/packages/web3-net/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3-providers-http/package.json b/packages/web3-providers-http/package.json index 06fe82f3e93..c1f33d0a273 100644 --- a/packages/web3-providers-http/package.json +++ b/packages/web3-providers-http/package.json @@ -8,7 +8,7 @@ "node": ">=8.0.0" }, "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "types": "types/index.d.ts", diff --git a/packages/web3-providers-ipc/package.json b/packages/web3-providers-ipc/package.json index bce34ea9a96..a366efd08e0 100644 --- a/packages/web3-providers-ipc/package.json +++ b/packages/web3-providers-ipc/package.json @@ -8,7 +8,7 @@ "node": ">=8.0.0" }, "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "types": "types/index.d.ts", diff --git a/packages/web3-providers-ws/package.json b/packages/web3-providers-ws/package.json index 52541a8ed80..b16cd5030c0 100644 --- a/packages/web3-providers-ws/package.json +++ b/packages/web3-providers-ws/package.json @@ -8,7 +8,7 @@ "node": ">=8.0.0" }, "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "types": "types/index.d.ts", diff --git a/packages/web3-shh/package.json b/packages/web3-shh/package.json index 53ce7ef1e18..2cecc96e78e 100644 --- a/packages/web3-shh/package.json +++ b/packages/web3-shh/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types", "postinstall": "echo \"WARNING: the web3-shh api will be deprecated in the next version\"" }, diff --git a/packages/web3-utils/package.json b/packages/web3-utils/package.json index 99f96ce37a1..0788521ad3f 100644 --- a/packages/web3-utils/package.json +++ b/packages/web3-utils/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" }, "main": "lib/index.js", diff --git a/packages/web3/package.json b/packages/web3/package.json index 4860aa461cb..123b186cc1b 100644 --- a/packages/web3/package.json +++ b/packages/web3/package.json @@ -19,7 +19,7 @@ "author": "ethereum.org", "types": "types/index.d.ts", "scripts": { - "tsc": "tsc -b tsconfig.json", + "compile": "tsc -b tsconfig.json", "dtslint": "dtslint --localTs ../../node_modules/typescript/lib types", "postinstall": "echo \"WARNING: the web3-shh and web3-bzz api will be deprecated in the next version\"" },