From dc61062adc738bf6ccc64b6867168d9c88bf817f Mon Sep 17 00:00:00 2001 From: Nicholas Charriere Date: Tue, 23 Jul 2024 18:02:51 -0700 Subject: [PATCH] Make sure ai import is a type, add zod to deps --- packages/api/ai/generate.mts | 2 +- pnpm-lock.yaml | 3 +++ srcbook/package.json | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/api/ai/generate.mts b/packages/api/ai/generate.mts index 361510fc..d3b49348 100644 --- a/packages/api/ai/generate.mts +++ b/packages/api/ai/generate.mts @@ -1,4 +1,4 @@ -import { generateText, GenerateTextResult } from 'ai'; +import { generateText, type GenerateTextResult } from 'ai'; import { type CodeLanguageType, type CellType, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 26e85a6a..bfe88566 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -316,6 +316,9 @@ importers: ws: specifier: 'catalog:' version: 8.17.0 + zod: + specifier: 'catalog:' + version: 3.23.8 devDependencies: '@types/express': specifier: ^4.17.21 diff --git a/srcbook/package.json b/srcbook/package.json index 6f91f157..171be27e 100644 --- a/srcbook/package.json +++ b/srcbook/package.json @@ -24,7 +24,8 @@ "express": "^4.19.2", "marked": "catalog:", "posthog-node": "^4.0.1", - "ws": "catalog:" + "ws": "catalog:", + "zod": "catalog:" }, "devDependencies": { "@types/express": "^4.17.21"