diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e51aadc1..1afaf44a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,12 +20,25 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v5 - with: - pnpm-version: 9 - name: Build run: pnpm ci:build + main-check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node and pnpm + uses: silverhand-io/actions-node-pnpm-run-steps@v5 + + - name: Prepack + run: pnpm prepack + + - name: Check + run: pnpm -r check + main-lint: runs-on: ubuntu-latest @@ -34,8 +47,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v5 - with: - pnpm-version: 9 - name: Prepack run: pnpm prepack @@ -54,8 +65,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v5 - with: - pnpm-version: 9 - name: Build for test run: pnpm -r build:test @@ -122,7 +131,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v5 with: - pnpm-version: 9 run-install: false # ** Prepack packages ** diff --git a/packages/connectors/connector-alipay-native/package.json b/packages/connectors/connector-alipay-native/package.json index 8fe8dc04c..13338c76d 100644 --- a/packages/connectors/connector-alipay-native/package.json +++ b/packages/connectors/connector-alipay-native/package.json @@ -41,6 +41,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-alipay-web/package.json b/packages/connectors/connector-alipay-web/package.json index 97d5b24bf..c74bee8bb 100644 --- a/packages/connectors/connector-alipay-web/package.json +++ b/packages/connectors/connector-alipay-web/package.json @@ -40,6 +40,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-aliyun-dm/package.json b/packages/connectors/connector-aliyun-dm/package.json index dc66d212a..4cc5a34d2 100644 --- a/packages/connectors/connector-aliyun-dm/package.json +++ b/packages/connectors/connector-aliyun-dm/package.json @@ -22,6 +22,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-aliyun-sms/package.json b/packages/connectors/connector-aliyun-sms/package.json index 2642eb7b7..3976ccce4 100644 --- a/packages/connectors/connector-aliyun-sms/package.json +++ b/packages/connectors/connector-aliyun-sms/package.json @@ -22,6 +22,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-apple/package.json b/packages/connectors/connector-apple/package.json index 3da245631..2f629e9ab 100644 --- a/packages/connectors/connector-apple/package.json +++ b/packages/connectors/connector-apple/package.json @@ -24,6 +24,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-aws-ses/package.json b/packages/connectors/connector-aws-ses/package.json index 436e0c66f..756ca637b 100644 --- a/packages/connectors/connector-aws-ses/package.json +++ b/packages/connectors/connector-aws-ses/package.json @@ -25,6 +25,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-azuread/package.json b/packages/connectors/connector-azuread/package.json index 5b5e70bd5..35c8de46b 100644 --- a/packages/connectors/connector-azuread/package.json +++ b/packages/connectors/connector-azuread/package.json @@ -24,6 +24,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-dingtalk-web/package.json b/packages/connectors/connector-dingtalk-web/package.json index 236a6a8aa..94617924e 100644 --- a/packages/connectors/connector-dingtalk-web/package.json +++ b/packages/connectors/connector-dingtalk-web/package.json @@ -40,6 +40,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-discord/package.json b/packages/connectors/connector-discord/package.json index 3d62613d2..3eab603e3 100644 --- a/packages/connectors/connector-discord/package.json +++ b/packages/connectors/connector-discord/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-facebook/package.json b/packages/connectors/connector-facebook/package.json index eb40b98c0..2a530348b 100644 --- a/packages/connectors/connector-facebook/package.json +++ b/packages/connectors/connector-facebook/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-feishu-web/package.json b/packages/connectors/connector-feishu-web/package.json index 9205b357d..3d2cedd5e 100644 --- a/packages/connectors/connector-feishu-web/package.json +++ b/packages/connectors/connector-feishu-web/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-github/package.json b/packages/connectors/connector-github/package.json index 64bd08d10..46a8b6e75 100644 --- a/packages/connectors/connector-github/package.json +++ b/packages/connectors/connector-github/package.json @@ -24,6 +24,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-google/package.json b/packages/connectors/connector-google/package.json index 2d13496d3..fc5c27687 100644 --- a/packages/connectors/connector-google/package.json +++ b/packages/connectors/connector-google/package.json @@ -24,6 +24,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-huggingface/package.json b/packages/connectors/connector-huggingface/package.json index 75468cbdb..aa35bb352 100644 --- a/packages/connectors/connector-huggingface/package.json +++ b/packages/connectors/connector-huggingface/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-kakao/package.json b/packages/connectors/connector-kakao/package.json index 93eec0f5d..7b5fbb833 100644 --- a/packages/connectors/connector-kakao/package.json +++ b/packages/connectors/connector-kakao/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-logto-email/package.json b/packages/connectors/connector-logto-email/package.json index f47baee72..1f8aca68a 100644 --- a/packages/connectors/connector-logto-email/package.json +++ b/packages/connectors/connector-logto-email/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-logto-sms/package.json b/packages/connectors/connector-logto-sms/package.json index f8f1e5670..c74a0446d 100644 --- a/packages/connectors/connector-logto-sms/package.json +++ b/packages/connectors/connector-logto-sms/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-logto-social-demo/package.json b/packages/connectors/connector-logto-social-demo/package.json index 6fcc4efdd..24b66db77 100644 --- a/packages/connectors/connector-logto-social-demo/package.json +++ b/packages/connectors/connector-logto-social-demo/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-mailgun/package.json b/packages/connectors/connector-mailgun/package.json index b84927754..e6e6cc85f 100644 --- a/packages/connectors/connector-mailgun/package.json +++ b/packages/connectors/connector-mailgun/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-mock-email-alternative/package.json b/packages/connectors/connector-mock-email-alternative/package.json index d2a3f97ea..ab9cb69d7 100644 --- a/packages/connectors/connector-mock-email-alternative/package.json +++ b/packages/connectors/connector-mock-email-alternative/package.json @@ -12,6 +12,7 @@ }, "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-mock-email/package.json b/packages/connectors/connector-mock-email/package.json index b06f9e68f..518bce6e7 100644 --- a/packages/connectors/connector-mock-email/package.json +++ b/packages/connectors/connector-mock-email/package.json @@ -12,6 +12,7 @@ }, "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-mock-sms/package.json b/packages/connectors/connector-mock-sms/package.json index 6f1f957de..faf94c2f9 100644 --- a/packages/connectors/connector-mock-sms/package.json +++ b/packages/connectors/connector-mock-sms/package.json @@ -12,6 +12,7 @@ }, "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-mock-social/package.json b/packages/connectors/connector-mock-social/package.json index c8c5e9aff..1f7ec5213 100644 --- a/packages/connectors/connector-mock-social/package.json +++ b/packages/connectors/connector-mock-social/package.json @@ -12,6 +12,7 @@ }, "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-naver/package.json b/packages/connectors/connector-naver/package.json index 075077832..c0efba098 100644 --- a/packages/connectors/connector-naver/package.json +++ b/packages/connectors/connector-naver/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-oauth2/package.json b/packages/connectors/connector-oauth2/package.json index 0033db358..b8276b181 100644 --- a/packages/connectors/connector-oauth2/package.json +++ b/packages/connectors/connector-oauth2/package.json @@ -26,6 +26,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup && tsc --declaration --emitDeclarationOnly", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-oidc/package.json b/packages/connectors/connector-oidc/package.json index d82f6250d..b3778549f 100644 --- a/packages/connectors/connector-oidc/package.json +++ b/packages/connectors/connector-oidc/package.json @@ -26,6 +26,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-saml/package.json b/packages/connectors/connector-saml/package.json index 90fea9a80..f376a8f98 100644 --- a/packages/connectors/connector-saml/package.json +++ b/packages/connectors/connector-saml/package.json @@ -25,6 +25,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-sendgrid-email/package.json b/packages/connectors/connector-sendgrid-email/package.json index 31c8125e9..49eb8deb0 100644 --- a/packages/connectors/connector-sendgrid-email/package.json +++ b/packages/connectors/connector-sendgrid-email/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-smsaero/package.json b/packages/connectors/connector-smsaero/package.json index d3a39f041..0fa44101e 100644 --- a/packages/connectors/connector-smsaero/package.json +++ b/packages/connectors/connector-smsaero/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-smtp/package.json b/packages/connectors/connector-smtp/package.json index 39fa82919..597d3534f 100644 --- a/packages/connectors/connector-smtp/package.json +++ b/packages/connectors/connector-smtp/package.json @@ -40,6 +40,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-tencent-sms/package.json b/packages/connectors/connector-tencent-sms/package.json index 89fd1b335..1854daa09 100644 --- a/packages/connectors/connector-tencent-sms/package.json +++ b/packages/connectors/connector-tencent-sms/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-twilio-sms/package.json b/packages/connectors/connector-twilio-sms/package.json index 7c7067e4e..58556321e 100644 --- a/packages/connectors/connector-twilio-sms/package.json +++ b/packages/connectors/connector-twilio-sms/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-wechat-native/package.json b/packages/connectors/connector-wechat-native/package.json index b7e906b91..a546b1556 100644 --- a/packages/connectors/connector-wechat-native/package.json +++ b/packages/connectors/connector-wechat-native/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-wechat-web/package.json b/packages/connectors/connector-wechat-web/package.json index 3ffa9f388..0ec46baea 100644 --- a/packages/connectors/connector-wechat-web/package.json +++ b/packages/connectors/connector-wechat-web/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/connector-wecom/package.json b/packages/connectors/connector-wecom/package.json index 79e23cae4..a5b13c695 100644 --- a/packages/connectors/connector-wecom/package.json +++ b/packages/connectors/connector-wecom/package.json @@ -23,6 +23,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/connectors/templates/package.json b/packages/connectors/templates/package.json index 80a6d5b1d..44870bc7b 100644 --- a/packages/connectors/templates/package.json +++ b/packages/connectors/templates/package.json @@ -12,6 +12,7 @@ ], "scripts": { "precommit": "lint-staged", + "check": "tsc --noEmit", "build": "tsup", "dev": "tsup --watch", "lint": "eslint --ext .ts src", diff --git a/packages/console/package.json b/packages/console/package.json index 55a82dd6f..2b67c9528 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -17,7 +17,7 @@ "start": "vite", "dev": "vite", "check": "tsc --noEmit", - "build": "pnpm generate && pnpm check && vite build", + "build": "pnpm generate && vite build", "lint": "eslint --ext .ts --ext .tsx src", "lint:report": "pnpm lint --format json --output-file report.json", "stylelint": "stylelint \"src/**/*.scss\"", diff --git a/packages/core/package.json b/packages/core/package.json index e08ab66cc..a7bc58c4a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -13,6 +13,7 @@ "scripts": { "precommit": "lint-staged", "copy:apidocs": "rsync -a -m --include '*/' --include '*.openapi.json' --exclude '*' src/routes/ build/routes/", + "check": "tsc --noEmit", "build": "tsup", "build:test": "rm -rf build/ && tsc -p tsconfig.test.json --sourcemap && pnpm run copy:apidocs", "lint": "eslint --ext .ts --ext .json src", diff --git a/packages/demo-app/package.json b/packages/demo-app/package.json index 4e27d25b2..7128bfb05 100644 --- a/packages/demo-app/package.json +++ b/packages/demo-app/package.json @@ -14,7 +14,7 @@ "start": "vite", "dev": "vite", "check": "tsc --noEmit", - "build": "pnpm check && vite build", + "build": "vite build", "lint": "eslint --ext .ts --ext .tsx src", "lint:report": "pnpm lint --format json --output-file report.json", "stylelint": "stylelint \"src/**/*.scss\"" diff --git a/packages/experience/package.json b/packages/experience/package.json index 3151875bc..bd15a684f 100644 --- a/packages/experience/package.json +++ b/packages/experience/package.json @@ -12,7 +12,7 @@ "start": "vite", "dev": "vite", "check": "tsc --noEmit", - "build": "pnpm check && vite build", + "build": "vite build", "lint": "eslint --ext .ts --ext .tsx src", "lint:report": "pnpm lint --format json --output-file report.json", "stylelint": "stylelint \"src/**/*.scss\"", diff --git a/packages/integration-tests/package.json b/packages/integration-tests/package.json index 00e0fa64d..16d929f5b 100644 --- a/packages/integration-tests/package.json +++ b/packages/integration-tests/package.json @@ -10,6 +10,7 @@ "#src/*": "./lib/*" }, "scripts": { + "check": "tsc --noEmit", "build": "tsup", "test:only": "NODE_OPTIONS=--experimental-vm-modules jest", "test": "pnpm build && pnpm test:api && pnpm test:experience && pnpm test:console",