build: add CLI compilation config
- Added tsconfig.cli.json for separate CLI compilation - Modified package.json to compile CLI files - Fixed dist/brainyData.js WAL import issue
This commit is contained in:
parent
bc5aa37dd0
commit
d2ea0de1f0
3 changed files with 23 additions and 2 deletions
|
|
@ -55,7 +55,7 @@
|
|||
"node": "22.x"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build:patterns:if-needed && tsc",
|
||||
"build": "npm run build:patterns:if-needed && tsc && tsc -p tsconfig.cli.json",
|
||||
"build:patterns": "tsx scripts/buildEmbeddedPatterns.ts",
|
||||
"build:patterns:if-needed": "node scripts/check-patterns.cjs || npm run build:patterns",
|
||||
"build:patterns:force": "npm run build:patterns",
|
||||
|
|
|
|||
19
tsconfig.cli.json
Normal file
19
tsconfig.cli.json
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"skipLibCheck": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"strict": false
|
||||
},
|
||||
"include": [
|
||||
"src/cli/commands/conversation.ts",
|
||||
"src/mcp/conversationTools.ts",
|
||||
"src/conversation/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist",
|
||||
"**/*.test.ts"
|
||||
]
|
||||
}
|
||||
|
|
@ -28,6 +28,8 @@
|
|||
"node_modules",
|
||||
"dist",
|
||||
"**/*.test.ts",
|
||||
"src/scripts/**/*"
|
||||
"src/scripts/**/*",
|
||||
"src/cli/**/*",
|
||||
"src/mcp/**/*"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue