**refactor(cli): remove unused Brainy CLI implementation**
- Deleted the entire `src/cli.ts` file, effectively removing the Brainy CLI component. - The change streamlines the codebase by eliminating unused and redundant code related to the CLI. - This refactor supports maintaining a cleaner and more focused project architecture.
This commit is contained in:
parent
c5461d7ea1
commit
3f4266ae4f
10 changed files with 120 additions and 92 deletions
|
|
@ -6,7 +6,7 @@
|
|||
* This script:
|
||||
* 1. Ensures versions are in sync by running generate-version.js
|
||||
* 2. Builds the main package
|
||||
* 3. Builds the CLI
|
||||
* 3. Builds the CLI package
|
||||
* 4. Publishes the main package
|
||||
* 5. Publishes the CLI package
|
||||
*
|
||||
|
|
@ -39,12 +39,12 @@ try {
|
|||
console.log('Building main package...')
|
||||
execSync('npm run build', { stdio: 'inherit', cwd: rootDir })
|
||||
|
||||
// Step 3: Build the CLI
|
||||
console.log('Building CLI...')
|
||||
execSync('npm run build:cli', { stdio: 'inherit', cwd: rootDir })
|
||||
// Step 3: Build the CLI package
|
||||
console.log('Building CLI package...')
|
||||
execSync('npm run build', { stdio: 'inherit', cwd: cliPackageDir })
|
||||
|
||||
// Step 4: Verify the CLI was built successfully
|
||||
const cliPath = path.join(rootDir, 'dist', 'cli.js')
|
||||
const cliPath = path.join(cliPackageDir, 'dist', 'cli.js')
|
||||
if (!fs.existsSync(cliPath)) {
|
||||
console.error(`Error: CLI build failed. File not found at ${cliPath}`)
|
||||
process.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue