Skip to content

Commit

Permalink
build: modify check command to fix command (#207)
Browse files Browse the repository at this point in the history
* build: run eslint with `--fix` option in `check` command

* build: rename `check` command to `fix` command
  • Loading branch information
threeal authored Nov 27, 2023
1 parent 23b56fe commit f57f29b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- name: Install Dependencies
run: corepack enable && yarn install

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

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

0 comments on commit f57f29b

Please sign in to comment.