Skip to content

Commit adb14cb

Browse files
feat: switch format:write to format --write
1 parent 7623d6a commit adb14cb

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

.github/DEVELOPMENT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ It should be applied automatically when you save files in VS Code or make a Git
3333
To manually reformat all files, you can run:
3434

3535
```shell
36-
pnpm format:write
36+
pnpm format --write
3737
```
3838

3939
## Linting

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"scripts": {
2525
"build": "tsup",
2626
"format": "prettier \"**/*\" --ignore-unknown",
27-
"format:write": "pnpm format --write",
2827
"initialize": "tsx ./src/bin/index.js --mode initialize",
2928
"lint": "eslint . .*js --max-warnings 0",
3029
"lint:knip": "knip",

src/steps/writing/creation/dotGitHub/createDevelopment.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe("createDevelopment", () => {
8686
To manually reformat all files, you can run:
8787
8888
\`\`\`shell
89-
pnpm format:write
89+
pnpm format --write
9090
\`\`\`
9191
9292
## Linting
@@ -197,7 +197,7 @@ describe("createDevelopment", () => {
197197
To manually reformat all files, you can run:
198198
199199
\`\`\`shell
200-
pnpm format:write
200+
pnpm format --write
201201
\`\`\`
202202
203203
## Linting

src/steps/writing/creation/dotGitHub/createDevelopment.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ It should be applied automatically when you save files in VS Code or make a Git
4949
To manually reformat all files, you can run:
5050
5151
\`\`\`shell
52-
pnpm format:write
52+
pnpm format --write
5353
\`\`\`
5454
5555
## Linting

src/steps/writing/creation/writePackageJson.test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ describe("writePackageJson", () => {
109109
"scripts": {
110110
"build": "tsup",
111111
"format": "prettier \\"**/*\\" --ignore-unknown",
112-
"format:write": "pnpm format --write",
113112
"lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
114113
"lint:knip": "knip",
115114
"lint:md": "markdownlint \\"**/*.md\\" \\".github/**/*.md\\" --rules sentences-per-line",
@@ -180,7 +179,6 @@ describe("writePackageJson", () => {
180179
"scripts": {
181180
"build": "tsup",
182181
"format": "prettier \\"**/*\\" --ignore-unknown",
183-
"format:write": "pnpm format --write",
184182
"lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
185183
"prepare": "husky install",
186184
"tsc": "tsc",

src/steps/writing/creation/writePackageJson.ts

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export async function writePackageJson(options: Options) {
7272
scripts: {
7373
build: "tsup",
7474
format: 'prettier "**/*" --ignore-unknown',
75-
"format:write": "pnpm format --write",
7675
lint: "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
7776
...(!options.excludeLintKnip && {
7877
"lint:knip": "knip",

0 commit comments

Comments
 (0)