resolve zod versions across child packages (#11052)

pull/10996/head
DexterStorey 2023-08-31 15:10:59 -04:00 committed by GitHub
parent acaa79b0b8
commit 814674fe40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 6 deletions

View File

@ -9,12 +9,11 @@
"langchain": "^0.0.131", "langchain": "^0.0.131",
"mailparser": "^3.6.5", "mailparser": "^3.6.5",
"next": "^13.4.6", "next": "^13.4.6",
"zod": "^3.20.2" "supports-color": "8.1.1",
"zod": "^3.22.2"
}, },
"devDependencies": { "devDependencies": {
"@types/mailparser": "^3.4.0", "@types/mailparser": "^3.4.0"
"@types/node": "^20.5.1",
"typescript": "^4.9.4"
}, },
"scripts": { "scripts": {
"build": "next build", "build": "next build",

View File

@ -23,6 +23,7 @@ export const env = createEnv({
NODE_ENV: process.env.NODE_ENV, NODE_ENV: process.env.NODE_ENV,
OPENAI_API_KEY: process.env.OPENAI_API_KEY, OPENAI_API_KEY: process.env.OPENAI_API_KEY,
SENDGRID_API_KEY: process.env.SENDGRID_API_KEY, SENDGRID_API_KEY: process.env.SENDGRID_API_KEY,
DATABASE_URL: process.env.DATABASE_URL,
}, },
/** /**
@ -37,5 +38,6 @@ export const env = createEnv({
NODE_ENV: z.enum(["development", "test", "production"]), NODE_ENV: z.enum(["development", "test", "production"]),
OPENAI_API_KEY: z.string().min(1), OPENAI_API_KEY: z.string().min(1),
SENDGRID_API_KEY: z.string().min(1), SENDGRID_API_KEY: z.string().min(1),
DATABASE_URL: z.string().url(),
}, },
}); });

View File

@ -102,7 +102,8 @@
"@apidevtools/json-schema-ref-parser": "9.0.9", "@apidevtools/json-schema-ref-parser": "9.0.9",
"@types/node": "16.9.1", "@types/node": "16.9.1",
"@types/react": "18.0.26", "@types/react": "18.0.26",
"@types/react-dom": "^18.0.9" "@types/react-dom": "^18.0.9",
"zod": "^3.20.2"
}, },
"lint-staged": { "lint-staged": {
"(apps|packages)/**/*.{js,ts,jsx,tsx}": [ "(apps|packages)/**/*.{js,ts,jsx,tsx}": [

View File

@ -46,7 +46,16 @@
"dependsOn": [] "dependsOn": []
}, },
"@calcom/ai#build": { "@calcom/ai#build": {
"env": ["CAL_AI_DATABASE_URL", "BACKEND_URL", "APP_ID", "APP_URL", "OPENAI_API_KEY", "PARSE_KEY"] "env": [
"BACKEND_URL",
"APP_ID",
"APP_URL",
"PARSE_KEY",
"NODE_ENV",
"OPENAI_API_KEY",
"SENDGRID_API_KEY",
"DATABASE_URL"
]
}, },
"@calcom/website#build": { "@calcom/website#build": {
"dependsOn": ["^build"], "dependsOn": ["^build"],