Skip to content

armgit / crm

Public Imported from GitHub
0

Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM.

TypeScript

Resolve workspace packages from source for the Vercel Nest build

Lewis Carhartdd636c3b7f7e
diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.json
index 43b0d898..fea922ce 100644
--- a/apps/api/tsconfig.json
+++ b/apps/api/tsconfig.json
@@ -2,10 +2,36 @@
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@crm/typescript-config/nestjs.json",
"compilerOptions": {
- "types": ["bun"],
+ "types": [
+ "bun"
+ ],
"experimentalDecorators": true,
- "emitDecoratorMetadata": true
+ "emitDecoratorMetadata": true,
+ "baseUrl": ".",
+ "paths": {
+ "@crm/auth": [
+ "../../packages/auth/src/index.ts"
+ ],
+ "@crm/auth/client": [
+ "../../packages/auth/src/client.ts"
+ ],
+ "@crm/db": [
+ "../../packages/db/src/index.ts"
+ ],
+ "@crm/db/client": [
+ "../../packages/db/src/client.ts"
+ ],
+ "@crm/db/enums": [
+ "../../packages/db/src/generated/prisma/enums.ts"
+ ]
+ }
},
- "include": ["src/**/*.ts", "test/**/*.ts"],
- "exclude": ["node_modules", "dist"]
+ "include": [
+ "src/**/*.ts",
+ "test/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules",
+ "dist"
+ ]
}
diff --git a/apps/api/vercel.json b/apps/api/vercel.json
new file mode 100644
index 00000000..3b2046eb
--- /dev/null
+++ b/apps/api/vercel.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "https://openapi.vercel.sh/vercel.json",
+ "functions": {
+ "src/main.ts": {
+ "includeFiles": "../../packages/**"
+ }
+ }
+}