Skip to content

Commit

Permalink
chore(deps): dedupe yarn.lock, add check for dupes (#571)
Browse files Browse the repository at this point in the history
* 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 <agilgur5@gmail.com>

* make it a devDep for consistency & security

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>

* use the older version of `wide-align` as the newer is broken

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>

---------

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
  • Loading branch information
agilgur5 authored Oct 11, 2024
1 parent d9a4285 commit 45b5ce2
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 2,236 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
with:
node-version-file: ".nvmrc"
- run: yarn install
- run: yarn deduplicate
- run: yarn build
- run: yarn lint
- run: yarn tsc -p tsconfig.json
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"v2"
],
"scripts": {
"build": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook -o ./dist/storybook",
"lint": "eslint --ext .tsx .",
"deduplicate": "yarn-deduplicate -s fewer yarn.lock",
"test": "jest",
"utils:icons": "rm -f src/assets/fonts/* && node ./scripts/icons/generator.js",
"start": "NODE_OPTIONS='--openssl-legacy-provider' start-storybook -p 6006",
"build": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook -o ./dist/storybook",
"start-v2": "NODE_OPTIONS='--openssl-legacy-provider' start-storybook -c ./v2/.storybook -s ./v2/.storybook/images -p 6006",
"build-v2": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook -o ./dist/storybook-v2 -c ./v2/.storybook"
},
Expand Down Expand Up @@ -87,7 +88,8 @@
"ts-jest": "^26.5.6",
"ts-node": "^10.9.1",
"webfonts-generator": "^0.4.0",
"webpack": "^4.46.0"
"webpack": "^4.46.0",
"yarn-deduplicate": "^6.0.2"
},
"resolutions": {
"@types/react": "^16.8.5",
Expand Down
Loading

0 comments on commit 45b5ce2

Please sign in to comment.