Skip to content

Commit 663519c

Browse files
authored
chore(package): migrate from yarn to pnpm (#5238)
1 parent 169e790 commit 663519c

File tree

8 files changed

+1132
-1019
lines changed

8 files changed

+1132
-1019
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111

1212
'type: dependencies':
1313
- package.json
14-
- yarn.lock
14+
- pnpm-lock.yaml

.husky/commit-msg

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 commitlint -e && echo "\nHey! Did you Val(e)date your changes? 💡🤡\n"
4+
pnpm commitlint -e && echo "\nHey! Did you Val(e)date your changes? 💡🤡\n"

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules/
22
package.json
3-
yarn.lock
3+
pnpm-lock.yaml
44
*.mdx

bin/check-pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[[ $(bin/count-invalid-slugs) == "0" ]] && \
44
[ ! -d node_modules/ ] && echo "⚠️ You need to install node_modules first" && exit 1; \
5-
yarn lint-staged || \
5+
pnpm lint-staged || \
66
(echo "💔 Slug error(s):" && bin/list-invalid-slugs \
77
echo "⚠️ You must fix slugs in 'menu/navigation.json' before commit"; exit 1)

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ git clone [email protected]:scaleway/docs-content.git | bash -s -- cd docs-content
127127

128128
Helpful pre-commit commands:
129129

130-
- `yarn check-slugs` Output slugs that are not kebab-case well formatted.
130+
- `pnpm check-slugs` Output slugs that are not kebab-case well formatted.
131131

132132
### Commit conventions
133133

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"repository": "github:scaleway/docs-content",
1818
"lint-staged": {
1919
"*.json": [
20-
"yarn format"
20+
"pnpm format"
2121
]
2222
},
2323
"devDependencies": {
@@ -30,7 +30,6 @@
3030
"scripts": {
3131
"prepare": "husky install",
3232
"check-slugs": "bin/list-invalid-slugs",
33-
"clean-categories": "bin/clean-categories",
34-
"format": "yarn run prettier --config .prettierrc --write \"**/*.json\""
33+
"format": "pnpm prettier --config .prettierrc --write \"**/*.json\""
3534
}
3635
}

0 commit comments

Comments
 (0)