mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-02-02 06:40:50 +08:00
move llms to core package
This commit is contained in:
23
scripts/build-core.js
Normal file
23
scripts/build-core.js
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const { execSync } = require('child_process');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
console.log('Building Core package (@musistudio/llms)...');
|
||||
|
||||
try {
|
||||
const coreDir = path.join(__dirname, '../packages/core');
|
||||
|
||||
// Build using the core package's build script
|
||||
console.log('Building core package (CJS and ESM)...');
|
||||
execSync('pnpm build', {
|
||||
stdio: 'inherit',
|
||||
cwd: coreDir
|
||||
});
|
||||
|
||||
console.log('Core package build completed successfully!');
|
||||
} catch (error) {
|
||||
console.error('Core package build failed:', error.message);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user