From 07b63757907cae14f7a8d0f9525d8a02bddcb3f4 Mon Sep 17 00:00:00 2001 From: Bowen Tan Date: Mon, 6 Jun 2022 15:23:20 +0800 Subject: [PATCH 1/2] build(package.json): remove 'git add' from lint-staged --- package.json | 3 +-- packages/arco-lib/package.json | 3 +-- packages/editor-sdk/package.json | 3 +-- packages/editor/package.json | 3 +-- packages/shared/package.json | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index e912cdfc..6e86b5df 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,7 @@ "lint-staged": { "*.{ts,tsx,html}": [ "prettier --write", - "eslint --fix", - "git add" + "eslint --fix" ] } } diff --git a/packages/arco-lib/package.json b/packages/arco-lib/package.json index c84a869f..f4850eab 100644 --- a/packages/arco-lib/package.json +++ b/packages/arco-lib/package.json @@ -68,8 +68,7 @@ "lint-staged": { "*.{ts,tsx,html}": [ "prettier --write", - "eslint --fix", - "git add" + "eslint --fix" ] }, "peerDependencies": { diff --git a/packages/editor-sdk/package.json b/packages/editor-sdk/package.json index fd313316..d798b194 100644 --- a/packages/editor-sdk/package.json +++ b/packages/editor-sdk/package.json @@ -55,8 +55,7 @@ "lint-staged": { "*.{ts,tsx,html}": [ "prettier --write", - "eslint --fix", - "git add" + "eslint --fix" ] }, "peerDependencies": { diff --git a/packages/editor/package.json b/packages/editor/package.json index af3490b9..8d06176e 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -88,8 +88,7 @@ "lint-staged": { "*.{ts,tsx,html}": [ "prettier --write", - "eslint --fix", - "git add" + "eslint --fix" ] }, "peerDependencies": { diff --git a/packages/shared/package.json b/packages/shared/package.json index 32e65e98..65d3345d 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -41,8 +41,7 @@ "lint-staged": { "*.{ts,tsx,html}": [ "prettier --write", - "eslint --fix", - "git add" + "eslint --fix" ] }, "peerDependencies": { From d69ade6655c7dc12daf4c3b2bb0a0277724e4bcf Mon Sep 17 00:00:00 2001 From: Bowen Tan Date: Mon, 6 Jun 2022 15:43:20 +0800 Subject: [PATCH 2/2] build(package.json): modify commit message to pass commitlint when releasing package --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6e86b5df..91c149f6 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "test:ci": "jest -c config/jest.ci.config.js", "lint": "eslint packages --ext .ts --ext .tsx", "fix-lint": "eslint --fix packages --ext .ts --ext .tsx", - "release": "lerna publish", - "release:canary": "branch=$(git rev-parse --abbrev-ref HEAD); lerna publish --canary --preid $branch", + "release": "lerna publish -m 'chore(*): publish'", + "release:canary": "branch=$(git rev-parse --abbrev-ref HEAD); lerna publish --canary --preid $branch -m 'chore(*): publish'", "commit": "git cz", "prepare": "husky install" },