**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
|
|
@ -19,16 +19,16 @@ const __dirname = dirname(__filename)
|
|||
// Find the main package
|
||||
const mainPackagePath = join(__dirname, 'node_modules', '@soulcraft', 'brainy')
|
||||
|
||||
// Path to the actual CLI script in the main package
|
||||
const cliPath = join(mainPackagePath, 'dist', 'cli.js')
|
||||
// Path to the actual CLI script in this package
|
||||
const cliPath = join(__dirname, 'dist', 'cli.js')
|
||||
|
||||
// Check if the CLI script exists
|
||||
if (!fs.existsSync(cliPath)) {
|
||||
console.error(`Error: CLI script not found at ${cliPath}`)
|
||||
console.error('This is likely because the main package is not installed correctly.')
|
||||
console.error('This is likely because the CLI was not built during package installation.')
|
||||
console.error('Please reinstall the package with:')
|
||||
console.error('npm uninstall -g @soulcraft/brainy-cli')
|
||||
console.error('npm install -g @soulcraft/brainy-cli --legacy-peer-deps')
|
||||
console.error('npm install -g @soulcraft/brainy-cli')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue