Skip to content

Commit 5b9db00

Browse files
authored
(chore) - cleanup and unify workspaces (#144)
* remove workspace lockfiles and unify prettier and husky * deduplicate lockfile * remove husky from workspaces * remove extraneous script
1 parent 169021d commit 5b9db00

File tree

10 files changed

+32
-26271
lines changed

10 files changed

+32
-26271
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn pre-commit-hook
4+
yarn lint-staged

.prettierrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"semi": true
5+
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
],
1515
"scripts": {
1616
"prepare": "husky install",
17-
"pre-commit-hook": "yarn lint-staged",
1817
"format": "prettier --write",
1918
"build:components": "yarn workspace @web3-ui/components build",
2019
"build:hooks": "yarn workspace @web3-ui/hooks build",
@@ -42,12 +41,16 @@
4241
"@testing-library/jest-dom": "^5.15.1",
4342
"@testing-library/react": "^12.1.2",
4443
"chromatic": "^6.1.0",
44+
"husky": "^7.0.4",
4545
"jest": "^26.6.3",
46+
"lint-staged": "^12.1.3",
4647
"msw": "^0.35.0",
4748
"ts-jest": "^26.4.4"
4849
},
4950
"lint-staged": {
50-
"*.{ts,tsx,json,js,jsx}": "yarn format"
51+
"*.{ts,tsx,md,json}": [
52+
"prettier --write"
53+
]
5154
},
5255
"preconstruct": {
5356
"packages": [

packages/components/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"build": "preconstruct build",
2222
"format": "prettier --write \"src/**/*.{ts,tsx,json,js,jsx}\"",
2323
"format:check": "prettier --list-different \"src/**/*.{ts,tsx,json,js,jsx}\"",
24-
"pre-commit-hook": "yarn lint-staged",
2524
"prepublishOnly": "yarn build && cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
2625
},
2726
"main": "dist/web3-ui-components.cjs.js",
@@ -51,17 +50,12 @@
5150
"@types/react-dom": "^16.9.10",
5251
"@web3-ui/hooks": "^0.5.0",
5352
"babel-loader": "^8.2.1",
54-
"husky": "^7.0.0",
5553
"identity-obj-proxy": "^3.0.0",
56-
"lint-staged": "^12.1.2",
5754
"prettier": "^2.2.0",
5855
"react": "^17.0.2",
5956
"react-dom": "^17.0.2",
6057
"ts-loader": "^8.0.11",
6158
"typescript": "^4.1.0",
6259
"webpack": "^4.42.1"
63-
},
64-
"lint-staged": {
65-
"*.{ts,tsx,json,js,jsx}": "yarn format"
6660
}
6761
}

packages/components/yarn.lock

Lines changed: 0 additions & 13016 deletions
This file was deleted.

packages/core/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"build": "preconstruct build",
2222
"format": "prettier --write \"src/**/*.{ts,tsx,json,js,jsx}\"",
2323
"format:check": "prettier --list-different \"src/**/*.{ts,tsx,json,js,jsx}\"",
24-
"pre-commit-hook": "yarn lint-staged",
2524
"prepublishOnly": "yarn build && cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
2625
},
2726
"main": "dist/web3-ui-core.cjs.js",
@@ -55,17 +54,12 @@
5554
"babel-loader": "^8.2.1",
5655
"classnames": "^2.2.6",
5756
"ethers": "^5.5.1",
58-
"husky": "^7.0.0",
5957
"identity-obj-proxy": "^3.0.0",
60-
"lint-staged": "^12.1.2",
6158
"prettier": "^2.2.0",
6259
"react": "^17.0.2",
6360
"react-dom": "^17.0.2",
6461
"ts-loader": "^8.0.11",
6562
"typescript": "^4.1.0",
6663
"webpack": "^4.42.1"
67-
},
68-
"lint-staged": {
69-
"*.{ts,tsx,json,js,jsx}": "yarn format"
7064
}
7165
}

packages/hooks/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"test": "jest --maxWorkers=2",
2525
"test:watch": "yarn test --watch",
2626
"test:coverage": "jest --coverage --colors --maxWorkers=2",
27-
"pre-commit-hook": "yarn lint-staged",
2827
"prepublishOnly": "yarn build && cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
2928
},
3029
"main": "dist/web3-ui-hooks.cjs.js",
@@ -54,17 +53,12 @@
5453
"@types/react-dom": "^16.9.10",
5554
"authereum": "^0.1.14",
5655
"babel-loader": "^8.2.1",
57-
"husky": "^7.0.0",
5856
"jest": "^26.6.3",
59-
"lint-staged": "^12.1.2",
6057
"prettier": "^2.2.0",
6158
"react": "^17.0.2",
6259
"react-dom": "^17.0.2",
6360
"ts-jest": "^26.4.4",
6461
"ts-loader": "^8.0.11",
6562
"typescript": "^4.1.0"
66-
},
67-
"lint-staged": {
68-
"*.{ts,tsx,json,js,jsx}": "yarn format"
6963
}
7064
}

0 commit comments

Comments
 (0)