Skip to content

Commit 20546ec

Browse files
fix: correct blockPrettier for executable, not mode
1 parent d13cf5b commit 20546ec

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/next/blocks/blockPrettier.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe("blockPrettier", () => {
9494
"npx lint-staged
9595
",
9696
{
97-
"mode": 33279,
97+
"executable": true,
9898
},
9999
],
100100
},
@@ -206,7 +206,7 @@ describe("blockPrettier", () => {
206206
"npx lint-staged
207207
",
208208
{
209-
"mode": 33279,
209+
"executable": true,
210210
},
211211
],
212212
},
@@ -335,7 +335,7 @@ describe("blockPrettier", () => {
335335
"npx lint-staged
336336
",
337337
{
338-
"mode": 33279,
338+
"executable": true,
339339
},
340340
],
341341
},

src/next/blocks/blockPrettier.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ export const blockPrettier = base.createBlock({
3232
return {
3333
scripts: [
3434
{
35-
silent: true,
3635
commands: ["rm .prettierrc* prettier.config*"],
3736
phase: CommandPhase.Migrations,
38-
silent: true,
3937
},
4038
],
4139
};
@@ -97,7 +95,7 @@ pnpm format --write
9795
files: {
9896
".husky": {
9997
".gitignore": "_\n",
100-
"pre-commit": ["npx lint-staged\n", { mode: 33279 }],
98+
"pre-commit": ["npx lint-staged\n", { executable: true }],
10199
},
102100
".prettierignore": formatIgnoreFile(
103101
["/.husky", "/lib", "/pnpm-lock.yaml", ...ignores].sort(),

0 commit comments

Comments
 (0)