From 6b198c547a56683a088fc3ae94bade95754f5932 Mon Sep 17 00:00:00 2001 From: s-kybound Date: Tue, 9 Apr 2024 17:34:27 +0800 Subject: [PATCH] update yarn commands --- .github/workflows/nodejs.yml | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6433ece..2ede34a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -33,7 +33,7 @@ jobs: node-version: 20 cache: yarn - run: yarn install - - run: yarn format + - run: yarn format:ci - run: yarn eslint - run: yarn test - run: yarn test-coverage diff --git a/package.json b/package.json index 098a522..3be85aa 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,9 @@ "scripts": { "build-libs": "npx ts-node ./src/compile-libs.ts", "test": "jest", - "lint": "eslint --ignore-path .eslintignore --ext .ts", - "format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"" + "eslint": "eslint --ignore-path .eslintignore --ext .ts", + "format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"", + "format:ci": "prettier --ignore-path .gitignore --list-different \"**/*.+(js|ts|json)\"" }, "meta": {}, "devDependencies": {