[Chore] Format and cleanup package.json files (#502)

- Format all package.json files using `fixpack` to follow conventional ordering
- Add useful missing fields
- Make licenses consistently use Apache 2
- Hoist some common deps up to workspace root, more could be done for this
pull/508/head
J M Rossy 3 years ago committed by GitHub
parent ca3c7e797e
commit 42ec4ab66d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      package.json
  2. 34
      solidity/app/package.json
  3. 37
      solidity/core/package.json
  4. 44
      typescript/deploy/package.json
  5. 43
      typescript/hardhat/package.json
  6. 58
      typescript/infra/package.json
  7. 48
      typescript/sdk/package.json
  8. 27
      typescript/utils/package.json
  9. 36
      yarn.lock

@ -1,22 +1,27 @@
{
"name": "@abacus-network/monorepo",
"scripts": {
"build": "yarn workspaces foreach --parallel --topological run build",
"prettier": "yarn workspaces foreach --parallel run prettier",
"postinstall": "husky install"
},
"workspaces": [
"solidity/*",
"typescript/*"
],
"private": true,
"description": "A yarn workspace of many core Abacus packages",
"version": "0.0.0",
"packageManager": "yarn@3.2.0",
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"husky": "^8.0.0",
"lint-staged": "^12.4.2",
"prettier": "^2.2.1",
"prettier": "^2.4.1",
"prettier-plugin-solidity": "^1.0.0-beta.5",
"ts-node": "^10.1.0",
"typescript": "^4.3.5"
}
},
"packageManager": "yarn@3.2.0",
"private": true,
"scripts": {
"build": "yarn workspaces foreach --parallel --topological run build",
"postinstall": "husky install",
"prettier": "yarn workspaces foreach --parallel run prettier"
},
"workspaces": [
"solidity/*",
"typescript/*"
]
}

@ -1,5 +1,12 @@
{
"name": "@abacus-network/app",
"description": "Solidity contracts for Abacus apps",
"version": "0.1.1",
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/utils": "^0.1.1",
"@openzeppelin/contracts-upgradeable": "^4.5.0"
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.1",
@ -7,37 +14,32 @@
"@typechain/hardhat": "^2.0.1",
"@types/mocha": "^9.1.0",
"chai": "^4.3.0",
"eslint": "^7.20.0",
"ethereum-waffle": "^3.2.2",
"ethers": "^5.4.4",
"hardhat": "^2.8.3",
"hardhat-gas-reporter": "^1.0.7",
"prettier": "^2.2.1",
"prettier-plugin-solidity": "^1.0.0-beta.5",
"solhint": "^3.3.2",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.14",
"ts-node": "^10.1.0",
"typechain": "^5.0.0",
"typescript": "^4.3.5"
"typechain": "^5.0.0"
},
"version": "0.1.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"directories": {
"test": "test"
},
"homepage": "https://www.useabacus.network",
"keywords": [
"Abacus",
"Solidity"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"repository": "https://github.com/abacus-network/abacus-monorepo",
"scripts": {
"prettier": "prettier --write ./contracts ./test",
"build": "hardhat compile && hardhat typechain && tsc && npm run copy-types",
"copy-types": "cp types/*.d.ts dist/",
"coverage": "hardhat coverage",
"prettier": "prettier --write ./contracts ./test",
"test": "hardhat test"
},
"license": "MIT OR Apache-2.0",
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/utils": "^0.1.1",
"@openzeppelin/contracts-upgradeable": "^4.5.0"
}
"types": "dist/index.d.ts"
}

@ -1,44 +1,47 @@
{
"name": "@abacus-network/core",
"description": "Core solidity contracts for Abacus",
"version": "0.1.1",
"dependencies": {
"@abacus-network/utils": "^0.1.1",
"@openzeppelin/contracts": "^4.6.0",
"@openzeppelin/contracts-upgradeable": "^4.6.0",
"@summa-tx/memview-sol": "^2.0.0"
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@typechain/ethers-v5": "~7.0.0",
"@typechain/hardhat": "^2.0.1",
"chai": "^4.3.0",
"eslint": "^7.20.0",
"ethereum-waffle": "^3.2.2",
"ethers": "^5.4.4",
"hardhat": "^2.8.3",
"hardhat-gas-reporter": "^1.0.7",
"prettier": "^2.2.1",
"prettier-plugin-solidity": "^1.0.0-beta.5",
"solhint": "^3.3.2",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.14",
"ts-generator": "^0.1.1",
"ts-node": "^10.1.0",
"typechain": "^5.0.0",
"typescript": "^4.3.5"
"typechain": "^5.0.0"
},
"version": "0.1.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"directories": {
"test": "test"
},
"homepage": "https://www.useabacus.network",
"keywords": [
"Abacus",
"Solidity"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"repository": "https://github.com/abacus-network/abacus-monorepo",
"scripts": {
"prettier": "prettier --write ./contracts ./libs ./test",
"build": "hardhat compile && hardhat typechain && tsc && npm run copy-types",
"copy-types": "cp types/*.d.ts dist/",
"coverage": "hardhat coverage",
"prettier": "prettier --write ./contracts ./libs ./test",
"test": "hardhat test"
},
"license": "MIT OR Apache-2.0",
"dependencies": {
"@abacus-network/utils": "^0.1.1",
"@openzeppelin/contracts": "^4.6.0",
"@openzeppelin/contracts-upgradeable": "^4.6.0",
"@summa-tx/memview-sol": "^2.0.0",
"ts-generator": "^0.1.1"
}
"types": "dist/index.d.ts"
}

@ -1,32 +1,36 @@
{
"name": "@abacus-network/deploy",
"description": "Deploy tools for the Abacus network",
"version": "0.1.1",
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/sdk": "^0.1.1",
"@abacus-network/utils": "^0.1.1",
"axios": "^0.21.3",
"debug": "^4.3.4",
"yargs": "^17.4.1"
},
"devDependencies": {
"@typechain/ethers-v5": "~7.0.0",
"@types/debug": "^4.1.7",
"ethers": "^5.4.7",
"prettier": "^2.3.1",
"ts-node": "^10.1.0",
"typescript": "^4.3.2"
"@types/node": "^16.9.1",
"@types/yargs": "^17.0.10",
"ethers": "^5.4.7"
},
"prepublish": "npm run build",
"name": "@abacus-network/deploy",
"version": "0.1.1",
"description": "Abacus deploy tools",
"homepage": "https://www.useabacus.network",
"keywords": [
"Abacus",
"Typescript",
"Deployment"
],
"license": "Apache-2.0",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"prepublish": "yarn build",
"repository": "https://github.com/abacus-network/abacus-monorepo",
"scripts": {
"build": "tsc",
"check": "tsc --noEmit",
"prettier": "prettier --write ./src"
},
"license": "MIT OR Apache-2.0",
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/sdk": "^0.1.1",
"@abacus-network/utils": "^0.1.1",
"@types/node": "^16.9.1",
"@types/yargs": "^17.0.10",
"axios": "^0.21.3",
"debug": "^4.3.4",
"yargs": "^17.4.1"
}
"types": "dist/src/index.d.ts"
}

@ -1,20 +1,7 @@
{
"prepublish": "npm run build",
"name": "@abacus-network/hardhat",
"description": "Hardhat related tools for the Abacus network",
"version": "0.1.1",
"description": "Abacus hardhat tools",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"check": "tsc --noEmit",
"prettier": "prettier --write ./src ./test",
"test": "hardhat test"
},
"license": "MIT OR Apache-2.0",
"directories": {
"test": "test"
},
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/sdk": "^0.1.1",
@ -25,9 +12,27 @@
"ethereum-waffle": "^3.2.2",
"ethers": "^5.4.7",
"hardhat": "^2.8.4",
"prettier": "^2.3.1",
"ts-node": "^10.1.0",
"typechain": "^5.0.0",
"typescript": "^4.3.2"
}
"typechain": "^5.0.0"
},
"directories": {
"src": "src",
"test": "test"
},
"homepage": "https://www.useabacus.network",
"keywords": [
"Abacus",
"Typescript",
"Hardhat"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"prepublish": "yarn build",
"repository": "https://github.com/abacus-network/abacus-monorepo",
"scripts": {
"build": "tsc",
"check": "tsc --noEmit",
"prettier": "prettier --write ./src ./test",
"test": "hardhat test"
},
"types": "dist/index.d.ts"
}

@ -1,30 +1,7 @@
{
"name": "@abacus-network/infra",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.5",
"@nomiclabs/hardhat-waffle": "^2.0.2",
"@typechain/ethers-v5": "~7.0.0",
"@typechain/hardhat": "^2.0.1",
"@types/chai": "^4.2.21",
"ethereum-waffle": "^3.2.2",
"ethers": "^5.4.7",
"hardhat": "^2.8.4",
"prettier": "^2.3.1",
"ts-node": "^10.1.0",
"typechain": "^5.0.0",
"typescript": "^4.3.2"
},
"prepublish": "npm run build",
"scripts": {
"build": "tsc",
"test": "hardhat test",
"check": "tsc --noEmit",
"node": "hardhat node",
"abacus": "ts-node scripts/core.ts -e test",
"kathy": "hardhat kathy --network localhost",
"prettier": "prettier --write *.ts ./src ./config ./scripts ./test"
},
"license": "MIT OR Apache-2.0",
"description": "Infrastructure utilities for the Abacus Network",
"version": "0.1.1",
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/deploy": "^0.1.1",
@ -43,5 +20,34 @@
"dotenv": "^10.0.0",
"yargs": "^17.3.1"
},
"version": "0.1.1"
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.5",
"@nomiclabs/hardhat-waffle": "^2.0.2",
"@typechain/ethers-v5": "~7.0.0",
"@typechain/hardhat": "^2.0.1",
"@types/chai": "^4.2.21",
"ethereum-waffle": "^3.2.2",
"ethers": "^5.4.7",
"hardhat": "^2.8.4",
"typechain": "^5.0.0"
},
"homepage": "https://www.useabacus.network",
"keywords": [
"Abacus",
"Typescript",
"Infrastructure"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"prepublish": "yarn build",
"repository": "https://github.com/abacus-network/abacus-monorepo",
"scripts": {
"abacus": "ts-node scripts/core.ts -e test",
"build": "tsc",
"check": "tsc --noEmit",
"kathy": "hardhat kathy --network localhost",
"node": "hardhat node",
"prettier": "prettier --write *.ts ./src ./config ./scripts ./test",
"test": "hardhat test"
}
}

@ -1,17 +1,15 @@
{
"name": "@abacus-network/sdk",
"description": "The official SDK for the Abacus Network",
"version": "0.1.1",
"description": "Abacus Network SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"check": "tsc --noEmit",
"prettier": "prettier --write ./src ./test",
"prepublishOnly": "npm run build",
"test": "mocha --config .mocharc.json './test/**/*.test.ts'"
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/utils": "^0.1.1",
"@ethersproject/bignumber": "^5.5.0",
"@ethersproject/bytes": "^5.5.0",
"celo-ethers-provider": "^0.0.0",
"ethers": "^5.4.7"
},
"license": "MIT OR Apache-2.0",
"devDependencies": {
"@types/node": "^16.9.1",
"@typescript-eslint/eslint-plugin": "^4.33.0",
@ -19,19 +17,25 @@
"chai": "^4.3.6",
"dotenv": "^10.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"fs": "0.0.1-security",
"mocha": "^9.2.2",
"prettier": "^2.4.1",
"sinon": "^13.0.2",
"typescript": "^4.4.3"
"sinon": "^13.0.2"
},
"dependencies": {
"@abacus-network/core": "^0.1.1",
"@abacus-network/utils": "^0.1.1",
"@ethersproject/bignumber": "^5.5.0",
"@ethersproject/bytes": "^5.5.0",
"celo-ethers-provider": "^0.0.0",
"ethers": "^5.4.7"
}
"homepage": "https://www.useabacus.network",
"keywords": [
"Abacus",
"Typescript",
"SDK"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"repository": "https://github.com/abacus-network/abacus-monorepo",
"scripts": {
"build": "tsc",
"check": "tsc --noEmit",
"prepublishOnly": "yarn build",
"prettier": "prettier --write ./src ./test",
"test": "mocha --config .mocharc.json './test/**/*.test.ts'"
},
"types": "dist/index.d.ts"
}

@ -1,22 +1,25 @@
{
"prepublish": "npm run build",
"name": "@abacus-network/utils",
"description": "General utilities for the Abacus network",
"version": "0.1.1",
"description": "Abacus utilities",
"dependencies": {
"chai": "^4.3.0",
"ethers": "^5.4.7"
},
"homepage": "https://www.useabacus.network",
"keywords": [
"Abacus",
"SDK",
"Typescript"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"prepublish": "yarn build",
"repository": "https://github.com/abacus-network/abacus-monorepo",
"scripts": {
"build": "tsc",
"check": "tsc --noEmit",
"prettier": "prettier --write ./src"
},
"author": "Celo Labs Inc.",
"license": "MIT OR Apache-2.0",
"dependencies": {
"chai": "^4.3.0",
"ethers": "^5.4.7"
},
"devDependencies": {
"prettier": "^2.2.1"
}
"types": "dist/index.d.ts"
}

@ -18,19 +18,14 @@ __metadata:
"@typechain/hardhat": ^2.0.1
"@types/mocha": ^9.1.0
chai: ^4.3.0
eslint: ^7.20.0
ethereum-waffle: ^3.2.2
ethers: ^5.4.4
hardhat: ^2.8.3
hardhat-gas-reporter: ^1.0.7
prettier: ^2.2.1
prettier-plugin-solidity: ^1.0.0-beta.5
solhint: ^3.3.2
solhint-plugin-prettier: ^0.0.5
solidity-coverage: ^0.7.14
ts-node: ^10.1.0
typechain: ^5.0.0
typescript: ^4.3.5
languageName: unknown
linkType: soft
@ -47,20 +42,16 @@ __metadata:
"@typechain/ethers-v5": ~7.0.0
"@typechain/hardhat": ^2.0.1
chai: ^4.3.0
eslint: ^7.20.0
ethereum-waffle: ^3.2.2
ethers: ^5.4.4
hardhat: ^2.8.3
hardhat-gas-reporter: ^1.0.7
prettier: ^2.2.1
prettier-plugin-solidity: ^1.0.0-beta.5
solhint: ^3.3.2
solhint-plugin-prettier: ^0.0.5
solidity-coverage: ^0.7.14
ts-generator: ^0.1.1
ts-node: ^10.1.0
typechain: ^5.0.0
typescript: ^4.3.5
languageName: unknown
linkType: soft
@ -78,9 +69,6 @@ __metadata:
axios: ^0.21.3
debug: ^4.3.4
ethers: ^5.4.7
prettier: ^2.3.1
ts-node: ^10.1.0
typescript: ^4.3.2
yargs: ^17.4.1
languageName: unknown
linkType: soft
@ -98,10 +86,7 @@ __metadata:
ethereum-waffle: ^3.2.2
ethers: ^5.4.7
hardhat: ^2.8.4
prettier: ^2.3.1
ts-node: ^10.1.0
typechain: ^5.0.0
typescript: ^4.3.2
languageName: unknown
linkType: soft
@ -132,10 +117,7 @@ __metadata:
ethereum-waffle: ^3.2.2
ethers: ^5.4.7
hardhat: ^2.8.4
prettier: ^2.3.1
ts-node: ^10.1.0
typechain: ^5.0.0
typescript: ^4.3.2
yargs: ^17.3.1
languageName: unknown
linkType: soft
@ -145,9 +127,13 @@ __metadata:
resolution: "@abacus-network/monorepo@workspace:."
dependencies:
"@trivago/prettier-plugin-sort-imports": ^3.2.0
eslint: ^7.32.0
eslint-config-prettier: ^8.3.0
husky: ^8.0.0
lint-staged: ^12.4.2
prettier: ^2.2.1
prettier: ^2.4.1
prettier-plugin-solidity: ^1.0.0-beta.5
ts-node: ^10.1.0
typescript: ^4.3.5
languageName: unknown
linkType: soft
@ -167,13 +153,10 @@ __metadata:
chai: ^4.3.6
dotenv: ^10.0.0
eslint: ^7.32.0
eslint-config-prettier: ^8.3.0
ethers: ^5.4.7
fs: 0.0.1-security
mocha: ^9.2.2
prettier: ^2.4.1
sinon: ^13.0.2
typescript: ^4.4.3
languageName: unknown
linkType: soft
@ -183,7 +166,6 @@ __metadata:
dependencies:
chai: ^4.3.0
ethers: ^5.4.7
prettier: ^2.2.1
languageName: unknown
linkType: soft
@ -7090,7 +7072,7 @@ __metadata:
languageName: node
linkType: hard
"eslint@npm:^7.20.0, eslint@npm:^7.32.0":
"eslint@npm:^7.32.0":
version: 7.32.0
resolution: "eslint@npm:7.32.0"
dependencies:
@ -12593,7 +12575,7 @@ __metadata:
languageName: node
linkType: hard
"prettier@npm:^2.1.2, prettier@npm:^2.2.1, prettier@npm:^2.3.1, prettier@npm:^2.4.1":
"prettier@npm:^2.1.2, prettier@npm:^2.4.1":
version: 2.6.2
resolution: "prettier@npm:2.6.2"
bin:
@ -15118,7 +15100,7 @@ __metadata:
languageName: node
linkType: hard
"typescript@npm:^4.3.2, typescript@npm:^4.3.5, typescript@npm:^4.4.3":
"typescript@npm:^4.3.5":
version: 4.6.3
resolution: "typescript@npm:4.6.3"
bin:
@ -15128,7 +15110,7 @@ __metadata:
languageName: node
linkType: hard
"typescript@patch:typescript@^4.3.2#~builtin<compat/typescript>, typescript@patch:typescript@^4.3.5#~builtin<compat/typescript>, typescript@patch:typescript@^4.4.3#~builtin<compat/typescript>":
"typescript@patch:typescript@^4.3.5#~builtin<compat/typescript>":
version: 4.6.3
resolution: "typescript@patch:typescript@npm%3A4.6.3#~builtin<compat/typescript>::version=4.6.3&hash=bda367"
bin:

Loading…
Cancel
Save