Skip to content

Commit 45b5ce2

Browse files
author
Anton Gilgur
authored
chore(deps): dedupe yarn.lock, add check for dupes (#571)
* chore(deps): dedupe `yarn.lock`, add check for dupes - add a `deduplicate` script that uses `yarn-deduplicate` - run `deduplicate` during UI CI - run `deduplicate` once and commit the results - similar to a PR I made in Workflows and PRs in other repos Signed-off-by: Anton Gilgur <[email protected]> * make it a devDep for consistency & security Signed-off-by: Anton Gilgur <[email protected]> * use the older version of `wide-align` as the newer is broken Signed-off-by: Anton Gilgur <[email protected]> --------- Signed-off-by: Anton Gilgur <[email protected]>
1 parent d9a4285 commit 45b5ce2

File tree

3 files changed

+216
-2236
lines changed

3 files changed

+216
-2236
lines changed

.github/workflows/build-v1.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
with:
1616
node-version-file: ".nvmrc"
1717
- run: yarn install
18+
- run: yarn deduplicate
1819
- run: yarn build
1920
- run: yarn lint
2021
- run: yarn tsc -p tsconfig.json

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
"v2"
1010
],
1111
"scripts": {
12-
"build": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook -o ./dist/storybook",
1312
"lint": "eslint --ext .tsx .",
13+
"deduplicate": "yarn-deduplicate -s fewer yarn.lock",
1414
"test": "jest",
1515
"utils:icons": "rm -f src/assets/fonts/* && node ./scripts/icons/generator.js",
1616
"start": "NODE_OPTIONS='--openssl-legacy-provider' start-storybook -p 6006",
17+
"build": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook -o ./dist/storybook",
1718
"start-v2": "NODE_OPTIONS='--openssl-legacy-provider' start-storybook -c ./v2/.storybook -s ./v2/.storybook/images -p 6006",
1819
"build-v2": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook -o ./dist/storybook-v2 -c ./v2/.storybook"
1920
},
@@ -87,7 +88,8 @@
8788
"ts-jest": "^26.5.6",
8889
"ts-node": "^10.9.1",
8990
"webfonts-generator": "^0.4.0",
90-
"webpack": "^4.46.0"
91+
"webpack": "^4.46.0",
92+
"yarn-deduplicate": "^6.0.2"
9193
},
9294
"resolutions": {
9395
"@types/react": "^16.8.5",

0 commit comments

Comments
 (0)