Skip to content

Commit 5d6f271

Browse files
committed
ci: use custom yarn dedupe alias for local and ci dx
1 parent 8215f53 commit 5d6f271

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/check-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
run: |
2727
echo "yarn.lock changed! Verifying package deduplication ..."
2828
29-
npx yarn-deduplicate --strategy fewer --list --fail
29+
yarn run dedupe --list --fail
3030
3131
if [[ $? -ne 0 ]]; then
3232
echo "Your changes introduced package duplication 🚨"
33-
echo "Run 'npx yarn-deduplicate --strategy fewer' to fix those."
33+
echo "Run 'yarn run dedupe' to fix those."
3434
else
3535
echo "No duplicate packages introduced ✅"
3636
fi

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"node": "^16.18.1 || ^18.0.0"
1212
},
1313
"scripts": {
14+
"dedupe": "npx yarn-deduplicate --strategy fewer",
1415
"build": "lage build --verbose",
1516
"build:codesandbox": "yarn build --to @fluentui/react --to @fluentui/react-components",
1617
"build:fluentui:docs": "gulp build:docs",

0 commit comments

Comments
 (0)