Skip to content

Commit 55ac665

Browse files
committed
Prefix global scripts with global:
1 parent bee1c74 commit 55ac665

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
"jest-snapshot": "29.3.1"
5353
},
5454
"scripts": {
55-
"format:fix": "cd $INIT_CWD && run prettier --write . --config prettier.config.mjs --ignore-path ${PROJECT_CWD}/.gitignore --cache --cache-strategy content",
56-
"format:check": "cd $INIT_CWD && run prettier --check . --config prettier.config.mjs --ignore-path ${PROJECT_CWD}/.gitignore",
57-
"lint:check": "cd $INIT_CWD && run eslint . --config eslint.config.mjs --cache --cache-strategy content",
58-
"lint:fix": "cd $INIT_CWD && run eslint --fix . --config eslint.config.mjs",
55+
"global:format:fix": "cd $INIT_CWD && run -T prettier --write . --ignore-path ${PROJECT_CWD}/.gitignore --ignore-path .gitignore --ignore-path .prettierignore --cache --cache-strategy content",
56+
"global:format:check": "cd $INIT_CWD && run -T prettier --check . --ignore-path ${PROJECT_CWD}/.gitignore --ignore-path .gitignore --ignore-path .prettierignore",
57+
"global:lint:check": "cd $INIT_CWD && run -T eslint . --cache --cache-strategy content",
58+
"global:lint:fix": "cd $INIT_CWD && run -T eslint --fix . --config eslint.config.mjs",
5959
"build": "yarn build:packages",
6060
"test": "yarn test:packages",
6161
"install": "yarn build:configs",

packages/toolkit/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@
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": "run -T format:fix",
98-
"format:check": "run -T format:check",
99-
"lint": "run -T lint:check",
100-
"lint:fix": "run -T lint:fix",
97+
"format": "run -T global:format:fix",
98+
"format:check": "run -T global:format:check",
99+
"lint": "run -T global:lint:check",
100+
"lint:fix": "run -T global:lint:fix",
101101
"test": "vitest --typecheck --run ",
102102
"test:watch": "vitest --watch",
103103
"type-tests": "yarn tsc -p tsconfig.test.json --noEmit",

0 commit comments

Comments
 (0)