Skip to content

Commit 0dd32d5

Browse files
Update Yarn scripts to work on Yarn Modern
Convert "format" into a global script that can be run from any project.
1 parent d53fd0a commit 0dd32d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"demo"
77
],
88
"scripts": {
9-
"build": "yarn workspaces run build",
10-
"format": "prettier --write .",
9+
"build": "yarn workspaces foreach --all run build",
10+
":format": "prettier --write .",
1111
"lint": "yarn workspaces foreach --all run lint",
12-
"test": "yarn workspaces run test"
12+
"test": "yarn workspaces foreach --all run test"
1313
},
1414
"devDependencies": {
1515
"@typescript-eslint/eslint-plugin": "^5.6.0",

0 commit comments

Comments
 (0)