Merge remote-tracking branch 'origin/main' into mk-offload

This commit is contained in:
mkorwel
2026-03-17 21:30:23 -07:00
235 changed files with 11515 additions and 1947 deletions

View File

@@ -31,6 +31,15 @@ const packageName = basename(process.cwd());
// build typescript files
execSync('tsc --build', { stdio: 'inherit' });
// Run package-specific bundling if the script exists
const bundleScript = join(process.cwd(), 'scripts', 'bundle-browser-mcp.mjs');
if (packageName === 'core' && existsSync(bundleScript)) {
console.log('Running chrome devtools MCP bundling...');
execSync('npm run bundle:browser-mcp', {
stdio: 'inherit',
});
}
// copy .{md,json} files
execSync('node ../../scripts/copy_files.js', { stdio: 'inherit' });

View File

@@ -95,4 +95,12 @@ if (existsSync(devtoolsDistSrc)) {
console.log('Copied devtools package to bundle/node_modules/');
}
// 6. Copy bundled chrome-devtools-mcp
const bundleMcpSrc = join(root, 'packages/core/dist/bundled');
const bundleMcpDest = join(bundleDir, 'bundled');
if (existsSync(bundleMcpSrc)) {
cpSync(bundleMcpSrc, bundleMcpDest, { recursive: true, dereference: true });
console.log('Copied bundled chrome-devtools-mcp to bundle/bundled/');
}
console.log('Assets copied to bundle/');