From c00b6681b99936cbf1b8e26d1d575e715c03962e Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 24 Jun 2024 21:00:31 +0300 Subject: [PATCH] pre-commit: add corepack to pnpm exec prettier --- .pre-commit-config.yaml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d6a1cc..17de007 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: hooks: - id: prettier name: prettier - entry: pnpm exec prettier --cache --ignore-unknown --write + entry: corepack pnpm exec prettier --cache --ignore-unknown --write language: system - repo: https://github.com/editorconfig-checker/editorconfig-checker.python diff --git a/package.json b/package.json index fc84af9..6b53745 100644 --- a/package.json +++ b/package.json @@ -2,5 +2,6 @@ "devDependencies": { "prettier": "3.3.2", "prettier-plugin-sh": "0.14.0" - } + }, + "packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a" }