From 7dba94124b3325498c0d1706eab384fc899e5f8d Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Tue, 12 Dec 2023 12:42:32 +0700 Subject: [PATCH] build: separate `check` command to `format` and `lint` commands --- .github/workflows/build.yaml | 7 +++++-- package.json | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 92417b1..1c74030 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/package.json b/package.json index d3e9a88..2eac15b 100644 --- a/package.json +++ b/package.json @@ -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": {