From 7adbd1e129d9f491d78f2d66c31ccc2bd6da6105 Mon Sep 17 00:00:00 2001 From: JounQin Date: Tue, 16 Jan 2024 18:11:00 +0800 Subject: [PATCH 1/3] fix: incorrect prettier peer version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d4c72eb..e03b95a 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "test": "jest" }, "peerDependencies": { - "prettier": ">=2.0.0" + "prettier": "^2.0.0" }, "dependencies": { "chalk": "^4.1.2", From 835651dac35bbd547e294d4c0525bf48c2fca258 Mon Sep 17 00:00:00 2001 From: JounQin Date: Tue, 16 Jan 2024 18:12:01 +0800 Subject: [PATCH 2/3] test: enable coverage support --- package.json | 3 +++ yarn.lock | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e03b95a..ccb7867 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,9 @@ "size-limit": "^11.0.1", "size-limit-preset-node-lib": "^0.3.0" }, + "jest": { + "collectCoverage": true + }, "prettier": "@1stg/prettier-config", "simple-git-hooks": { "pre-commit": "./bin/pretty-quick.js --staged" diff --git a/yarn.lock b/yarn.lock index 8babc5b..a96c320 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7538,7 +7538,7 @@ __metadata: size-limit: ^11.0.1 size-limit-preset-node-lib: ^0.3.0 peerDependencies: - prettier: ">=2.0.0" + prettier: ^2.0.0 bin: pretty-quick: ./bin/pretty-quick.js languageName: unknown From 2834edb4aa74d946fb574f1899d33d94b35cb941 Mon Sep 17 00:00:00 2001 From: JounQin Date: Tue, 16 Jan 2024 18:20:39 +0800 Subject: [PATCH 3/3] docs: add changeset for releasing --- .changeset/cuddly-mirrors-hug.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cuddly-mirrors-hug.md diff --git a/.changeset/cuddly-mirrors-hug.md b/.changeset/cuddly-mirrors-hug.md new file mode 100644 index 0000000..7581436 --- /dev/null +++ b/.changeset/cuddly-mirrors-hug.md @@ -0,0 +1,5 @@ +--- +'pretty-quick': patch +--- + +fix: incorrect prettier peer version