Skip to content

Commit 4647313

Browse files
renamed test format task and used it only on root
1 parent b95f095 commit 4647313

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
"build": "turbo run build",
1818
"clean": "turbo run clean",
1919
"dev": "turbo run dev --no-cache --continue",
20-
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
20+
"format": "prettier '**/*.{ts,tsx}' --write",
2121
"lint": "turbo run lint",
2222
"start": "turbo run start",
23-
"test": "run-p test:*",
24-
"test:unit": "turbo run test",
25-
"test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check",
23+
"test": "turbo run test",
24+
"test-format": "prettier '**/*.{ts,tsx}' --check",
2625
"predeploy": "run-s build",
2726
"prepare": "husky install",
2827
"pre-commit": "lint-staged"

turbo.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313
"dependsOn": ["^build"]
1414
},
1515
"test": {
16-
"dependsOn": ["build", "lint"],
16+
"dependsOn": ["build", "lint", "//#test-format"],
1717
"outputs": []
1818
},
1919
"lint": {
2020
"outputs": []
2121
},
22+
"//#test-format": {
23+
"dependsOn": [],
24+
"outputs": ["build/**"]
25+
},
2226
"dev": {
2327
"dependsOn": ["^build"],
2428
"cache": false,

0 commit comments

Comments
 (0)