From 4d256cef9404031d0296db9aaa3784b688621ed8 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 17 Mar 2023 15:11:03 +0800 Subject: [PATCH] chore: support build cli-engine before release (#2441) --- .github/workflows/pr-next-release.yml | 2 ++ .github/workflows/release-rc.yml | 2 ++ .github/workflows/release.yml | 1 + configs/ts/references/tsconfig.cli-engine.json | 8 -------- configs/ts/tsconfig.build.json | 3 --- package.json | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) delete mode 100644 configs/ts/references/tsconfig.cli-engine.json diff --git a/.github/workflows/pr-next-release.yml b/.github/workflows/pr-next-release.yml index fb8117d41c..f1f627b5c9 100644 --- a/.github/workflows/pr-next-release.yml +++ b/.github/workflows/pr-next-release.yml @@ -65,6 +65,8 @@ jobs: run: | yarn install --immutable yarn run init + yarn run build:cli-engine + - name: Setup .yarnrc.yml run: | yarn config set -H npmRegistryServer "https://registry.npmjs.org" diff --git a/.github/workflows/release-rc.yml b/.github/workflows/release-rc.yml index 63d1fd54a1..dcabf135d1 100644 --- a/.github/workflows/release-rc.yml +++ b/.github/workflows/release-rc.yml @@ -53,6 +53,8 @@ jobs: run: | yarn install --immutable yarn run init + yarn run build:cli-engine + - name: Setup .yarnrc.yml run: | yarn config set -H npmRegistryServer "https://registry.npmjs.org" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a717dabce..ef2b01da06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,6 +69,7 @@ jobs: run: | yarn install --immutable yarn run init + yarn run build:cli-engine yarn run manifest -v=${{github.event.inputs.version}} - name: Setup .yarnrc.yml run: | diff --git a/configs/ts/references/tsconfig.cli-engine.json b/configs/ts/references/tsconfig.cli-engine.json deleted file mode 100644 index f8b2f2c887..0000000000 --- a/configs/ts/references/tsconfig.cli-engine.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "rootDir": "../../../tools/cli-engine/src", - "outDir": "../../../tools/cli-engine/lib" - }, - "include": ["../../../tools/cli-engine/src"] -} diff --git a/configs/ts/tsconfig.build.json b/configs/ts/tsconfig.build.json index 7cb13af519..3f9da0dfcd 100644 --- a/configs/ts/tsconfig.build.json +++ b/configs/ts/tsconfig.build.json @@ -176,9 +176,6 @@ }, { "path": "./references/tsconfig.playwright.json" - }, - { - "path": "./references/tsconfig.cli-engine.json" } ] } diff --git a/package.json b/package.json index 9b89a6eb1d..c9431c9d78 100644 --- a/package.json +++ b/package.json @@ -22,13 +22,13 @@ "compile": "cross-env NODE_ENV=production ts-node ./scripts/build", "build:worker-host": "cd packages/extension && yarn run compile:worker", "build:ext-host": "cd packages/extension && yarn run build:ext-host", + "build:cli-engine": "cd tools/cli-engine && yarn run build", "watch:ext-host": "cd packages/extension && yarn run watch:ext-host", "watch:worker-host": "cd packages/extension && yarn run watch:worker", "watch": "yarn run rebuild:node && cross-env NODE_ENV=production ts-node ./scripts/watch", "publish": "yarn run build:all && ts-node ./scripts/publish", "publish:snapshot": "yarn run publish --rollback --type=snapshot", "publish:next": "yarn run publish --rollback --type=next", - "publish:engine": "sh ./scripts/release-cli-engine.sh", "update-version": "ts-node ./scripts/publish --versionOnly", "update-disttag": "ts-node ./scripts/dist-tag", "lint": "eslint . --ext .js,.jsx,.ts,.tsx",