Skip to content

Commit

Permalink
fix: correct blockPrettier for executable, not mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jan 16, 2025
1 parent d13cf5b commit 20546ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/next/blocks/blockPrettier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe("blockPrettier", () => {
"npx lint-staged
",
{
"mode": 33279,
"executable": true,
},
],
},
Expand Down Expand Up @@ -206,7 +206,7 @@ describe("blockPrettier", () => {
"npx lint-staged
",
{
"mode": 33279,
"executable": true,
},
],
},
Expand Down Expand Up @@ -335,7 +335,7 @@ describe("blockPrettier", () => {
"npx lint-staged
",
{
"mode": 33279,
"executable": true,
},
],
},
Expand Down
4 changes: 1 addition & 3 deletions src/next/blocks/blockPrettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ export const blockPrettier = base.createBlock({
return {
scripts: [
{
silent: true,
commands: ["rm .prettierrc* prettier.config*"],
phase: CommandPhase.Migrations,
silent: true,
},
],
};
Expand Down Expand Up @@ -97,7 +95,7 @@ pnpm format --write
files: {
".husky": {
".gitignore": "_\n",
"pre-commit": ["npx lint-staged\n", { mode: 33279 }],
"pre-commit": ["npx lint-staged\n", { executable: true }],
},
".prettierignore": formatIgnoreFile(
["/.husky", "/lib", "/pnpm-lock.yaml", ...ignores].sort(),
Expand Down

0 comments on commit 20546ec

Please sign in to comment.