fix: exclude cortex modules from browser bundles to prevent CLI dependency issues
- Add cortex module exclusions in browser field - Prevents chalk, ora, boxen imports from being bundled in browsers - Resolves process.stderr.isTTY error in browser environments - Cortex functionality remains available in Node.js environments
This commit is contained in:
parent
972fb9197f
commit
0cde950c03
2 changed files with 9 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@soulcraft/brainy",
|
||||
"version": "3.8.0",
|
||||
"version": "3.8.1",
|
||||
"description": "Universal Knowledge Protocol™ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. 31 nouns × 40 verbs for infinite expressiveness.",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
|
|
@ -44,7 +44,12 @@
|
|||
"browser": {
|
||||
"./dist/distributed": false,
|
||||
"./dist/cli": false,
|
||||
"./dist/scripts": false
|
||||
"./dist/scripts": false,
|
||||
"./dist/cortex": false,
|
||||
"./dist/cortex/neuralImport.js": false,
|
||||
"./dist/cortex/performanceMonitor.js": false,
|
||||
"./dist/cortex/healthCheck.js": false,
|
||||
"./dist/cortex/backupRestore.js": false
|
||||
},
|
||||
"engines": {
|
||||
"node": "22.x"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue