Skip to content

Commit

Permalink
build: separate fix command to format and lint commands (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal authored Nov 29, 2023
1 parent f57f29b commit 35edf00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
- name: Install Dependencies
run: corepack enable && yarn install

- name: Fix Package
run: yarn fix && git diff --exit-code HEAD
- name: Check Format
run: yarn format && git diff --exit-code HEAD

- name: Check Lint
run: yarn lint

- name: Create Package
run: yarn pack
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
],
"scripts": {
"doc": "typedoc src/index.mts",
"fix": "prettier --write . && eslint --fix --ignore-path .gitignore .",
"format": "prettier --write .",
"lint": "eslint --ignore-path .gitignore .",
"prepack": "tsc",
"test": "jest"
},
Expand Down

0 comments on commit 35edf00

Please sign in to comment.