**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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue