Skip to content

Commit 4d6bf70

Browse files
committed
chore: move format into a shell script for faster startup
1 parent 8c305aa commit 4d6bf70

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

bin/format.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
BIOME=./node_modules/.bin/biome
3+
ESLINT=./node_modules/.bin/eslint
4+
5+
$BIOME format --write . && $ESLINT --cache --fix .

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"build": "pnpm -r build",
66
"ci-test": "bin/ci-test.sh",
7-
"format": "biome format --write . && eslint --cache --fix .",
7+
"format": "bin/format.sh",
88
"lint": "eslint --cache .",
99
"test": "pnpm -r test"
1010
},

0 commit comments

Comments
 (0)