diff --git a/scripts/build.js b/scripts/build.js index f471bf25e3a..8bc39f2c107 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -38,10 +38,11 @@ execSync('npm run generate', { stdio: 'inherit', cwd: root }); // 2. web-templates (embeddable web templates - used by cli) // 3. channel-base (base channel infrastructure - used by channel adapters and cli) // 4. channel adapters (depend on channel-base) -// 5. cli (depends on core, web-templates, channel packages) -// 6. webui (shared UI components - used by vscode companion) -// 7. sdk (no internal dependencies) -// 8. vscode-ide-companion (depends on webui) +// 5. acp-bridge (depends on core - used by cli) +// 6. cli (depends on core, acp-bridge, web-templates, channel packages) +// 7. webui (shared UI components - used by vscode companion) +// 8. sdk (no internal dependencies) +// 9. vscode-ide-companion (depends on webui) const buildOrder = [ 'packages/core', 'packages/web-templates', @@ -50,6 +51,7 @@ const buildOrder = [ 'packages/channels/weixin', 'packages/channels/dingtalk', 'packages/channels/plugin-example', + 'packages/acp-bridge', 'packages/cli', 'packages/webui', 'packages/sdk-typescript', diff --git a/scripts/version.js b/scripts/version.js index 19d65399ad9..55b77f1ddfc 100644 --- a/scripts/version.js +++ b/scripts/version.js @@ -105,8 +105,11 @@ if (cliPackageJson.config?.sandboxImageUri) { } // 7. Run `npm install` to update package-lock.json. +// --ignore-scripts prevents the root `prepare` lifecycle from triggering a +// redundant full build that fails with TS5055 when dist/ already exists from +// the initial `npm ci` install. run( - 'npm install --workspace packages/cli --workspace packages/core --workspace packages/channels/base --workspace packages/channels/plugin-example --package-lock-only', + 'npm install --workspace packages/cli --workspace packages/core --workspace packages/channels/base --workspace packages/channels/plugin-example --package-lock-only --ignore-scripts', ); console.log(`Successfully bumped versions to v${newVersion}.`);