mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-06 01:19:23 +01:00
pre-commit: utilize corepack
This commit is contained in:
parent
d40f7858a0
commit
823545ed39
@ -5,7 +5,7 @@
|
||||
ci:
|
||||
# Attempts to use networking and fails at name resolution, local hook
|
||||
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
||||
skip: [pnpm-install-dev, prettier]
|
||||
skip: [install-dev-deps, prettier]
|
||||
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
||||
# the frequency of unnecessary PRs.
|
||||
# https://github.com/pre-commit-ci/issues/issues/83
|
||||
@ -132,16 +132,16 @@ repos:
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: pnpm-install-dev
|
||||
- id: install-dev-deps
|
||||
name: Install pnpm dev dependencies
|
||||
entry: pnpm install -D
|
||||
entry: corepack pnpm install -D
|
||||
language: system
|
||||
always_run: true
|
||||
verbose: true
|
||||
pass_filenames: false
|
||||
- id: prettier
|
||||
name: prettier
|
||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
|
||||
language: system
|
||||
exclude_types: [json]
|
||||
|
||||
|
3
package.json
vendored
3
package.json
vendored
@ -6,5 +6,6 @@
|
||||
"prettier-plugin-nginx": "1.0.3",
|
||||
"prettier-plugin-sh": "0.14.0",
|
||||
"prettier-plugin-toml": "2.0.1"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user