Skip to content

Commit b72567c

Browse files
committed
Make format:check a shareable global script
1 parent 3b298f1 commit b72567c

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
@@ -53,7 +53,7 @@
5353
},
5454
"scripts": {
5555
"format": "prettier --write . --config prettier.config.mjs --cache --cache-strategy content",
56-
"format:check": "prettier --check . --config prettier.config.mjs",
56+
"format:check": "cd $INIT_CWD && run prettier --check . --config prettier.config.mjs --ignore-path ${PROJECT_CWD}/.gitignore",
5757
"lint": "eslint . --config eslint.config.mjs --cache --cache-strategy content",
5858
"lint:fix": "eslint --fix . --config eslint.config.mjs",
5959
"build": "yarn build:packages",

packages/toolkit/package.json

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

0 commit comments

Comments
 (0)