Skip to content

Commit 78531b1

Browse files
committed
Make format:fix a shareable global script
1 parent 8c083bb commit 78531b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"jest-snapshot": "29.3.1"
5353
},
5454
"scripts": {
55-
"format": "prettier --write . --config prettier.config.mjs --cache --cache-strategy content",
55+
"format:fix": "cd $INIT_CWD && run prettier --write . --config prettier.config.mjs --ignore-path ${PROJECT_CWD}/.gitignore --cache --cache-strategy content",
5656
"format:check": "cd $INIT_CWD && run prettier --check . --config prettier.config.mjs --ignore-path ${PROJECT_CWD}/.gitignore",
5757
"lint:check": "cd $INIT_CWD && run eslint . --config eslint.config.mjs --cache --cache-strategy content",
5858
"lint:fix": "eslint --fix . --config eslint.config.mjs",

packages/toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"run-build": "tsup",
9595
"build": "yarn clean && yarn run-build && tsx scripts/fixUniqueSymbolExports.mts",
9696
"build-only": "yarn clean && yarn run-build",
97-
"format": "prettier --write . '!dist' --cache --cache-strategy content",
97+
"format": "run -T format:fix",
9898
"format:check": "run -T format:check",
9999
"lint": "run -T lint:check",
100100
"lint:fix": "eslint --fix . --config eslint.config.mjs",

0 commit comments

Comments
 (0)