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 - name: Install Dependencies
run: yarn install run: yarn install
- name: Check Package - name: Check Format
run: yarn check run: yarn format
- name: Check Lint
run: yarn lint
- name: Bundle Package - name: Bundle Package
run: yarn bundle run: yarn bundle

View File

@ -4,7 +4,8 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"bundle": "tsc && ncc build dist/main.mjs -o main", "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" "test": "tsc && jest"
}, },
"dependencies": { "dependencies": {