**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:
David Snelling 2025-07-02 11:55:44 -07:00
parent e2b0dc04ce
commit 10a76a7b69
10 changed files with 120 additions and 92 deletions

View file

@ -112,14 +112,6 @@ const config = {
var global = typeof window !== "undefined" ? window : this;
// Buffer polyfill is now included via the buffer-polyfill plugin
`
},
cli: {
input: 'src/cli.ts',
outputPrefix: 'cli',
tsconfig: './tsconfig.unified.json',
declaration: false,
declarationMap: false,
intro: ''
}
}
@ -187,47 +179,5 @@ const mainConfig = {
]
}
// CLI configuration
const cliConfig = {
input: 'src/cli.ts',
output: {
dir: 'dist',
entryFileNames: 'cli.js',
format: 'es',
sourcemap: true,
inlineDynamicImports: true
},
plugins: [
replace({
preventAssignment: true,
'process.env.NODE_ENV': JSON.stringify('production')
}),
fixThisReferences(),
resolve({
browser: false,
preferBuiltins: true
}),
commonjs({
transformMixedEsModules: true
}),
json(),
typescript({
tsconfig: './tsconfig.unified.json',
declaration: false,
declarationMap: false
})
],
external: [
// Add any dependencies you want to exclude from the bundle
'@aws-sdk/client-s3',
'@smithy/util-stream',
'@smithy/node-http-handler',
'@aws-crypto/crc32c',
'node:stream/web',
'node:worker_threads'
]
}
// Export configurations based on build type
// Only include CLI config when specifically building CLI
export default buildType === 'cli' ? cliConfig : mainConfig
// Export the main configuration
export default mainConfig