mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-16 17:09:28 +01:00
pre-commit: use corepack
This commit is contained in:
parent
8aa41eccdd
commit
cd4aa2bf40
@ -79,14 +79,14 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: pnpm-install-dev
|
- id: pnpm-install-dev
|
||||||
name: Install pnpm dev dependencies
|
name: Install pnpm dev dependencies
|
||||||
entry: pnpm install -D
|
entry: corepack pnpm install -D
|
||||||
language: system
|
language: system
|
||||||
always_run: true
|
always_run: true
|
||||||
verbose: true
|
verbose: true
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: prettier
|
name: prettier
|
||||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
|
||||||
language: system
|
language: system
|
||||||
# Better handled by pretty-format-json from pre-commit-hooks.
|
# Better handled by pretty-format-json from pre-commit-hooks.
|
||||||
# Remember to have *.json in .prettierignore!
|
# Remember to have *.json in .prettierignore!
|
||||||
|
3
package.json
vendored
3
package.json
vendored
@ -3,5 +3,6 @@
|
|||||||
"@prettier/plugin-xml": "3.4.1",
|
"@prettier/plugin-xml": "3.4.1",
|
||||||
"prettier": "3.3.2",
|
"prettier": "3.3.2",
|
||||||
"prettier-plugin-sh": "0.14.0"
|
"prettier-plugin-sh": "0.14.0"
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user