refactor(sdk,vscode): extract CLI bundling to dedicated script

- Move CLI bundling logic from build.js to bundle-cli.js in SDK package
- Add bundle:cli script to SDK package.json lifecycle hooks
- Remove redundant Build and Bundle step from workflow (prepackage handles it)
- Add repo build step to prepackage.js to ensure workspace artifacts exist
- Fix Windows workspace symlink issue by running npm install from tmpdir
- Remove lint/typecheck from prepackage (handled elsewhere in CI)
This commit is contained in:
tanzhenxin 2026-01-24 11:35:33 +08:00
parent 510610c575
commit 3d6fe23c3b
5 changed files with 103 additions and 46 deletions

View file

@ -195,11 +195,6 @@ jobs:
run: |-
npm run release:version -- "${RELEASE_VERSION}"
- name: 'Build and Bundle'
run: |-
npm run build
npm run bundle
- name: 'Prepare VSCode Extension'
env:
UNIVERSAL_BUILD: '${{ matrix.universal }}'