diff --git a/package.json b/package.json index 572b85dc..68838d0d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.cli.json b/tsconfig.cli.json new file mode 100644 index 00000000..f511690d --- /dev/null +++ b/tsconfig.cli.json @@ -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" + ] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 737ea9bc..4c8c81f6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,6 +28,8 @@ "node_modules", "dist", "**/*.test.ts", - "src/scripts/**/*" + "src/scripts/**/*", + "src/cli/**/*", + "src/mcp/**/*" ] } \ No newline at end of file