build: separate check command to format and lint commands (#114)

This commit is contained in:
Alfi Maulana 2023-12-12 12:45:47 +07:00 committed by GitHub
parent fe060731ea
commit c4d2902c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -29,8 +29,11 @@ jobs:
- name: Install Dependencies
run: yarn install
- name: Check Package
run: yarn check
- name: Check Format
run: yarn format
- name: Check Lint
run: yarn lint
- name: Bundle Package
run: yarn bundle

View File

@ -4,7 +4,8 @@
"type": "module",
"scripts": {
"bundle": "tsc && ncc build dist/main.mjs -o main",
"check": "prettier --write . !main !README.md && eslint --ignore-path .gitignore .",
"format": "prettier --write . !main !README.md",
"lint": "eslint --ignore-path .gitignore .",
"test": "tsc && jest"
},
"dependencies": {