From e5ecccf76b00b3dcb0ee70b4cd3f1a087de14732 Mon Sep 17 00:00:00 2001 From: Mike Grabowski Date: Tue, 17 Dec 2024 11:26:33 +0400 Subject: [PATCH] fix: wrong openai key name while initing new project --- packages/create-fabrice-ai/src/index.ts | 2 +- packages/framework/package.json | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/create-fabrice-ai/src/index.ts b/packages/create-fabrice-ai/src/index.ts index 424adb9..3d904ae 100644 --- a/packages/create-fabrice-ai/src/index.ts +++ b/packages/create-fabrice-ai/src/index.ts @@ -151,7 +151,7 @@ s.stop('Downloaded and extracted template!') * If they choose to do it now, we will ask them to provide their API key. * If they do not provide the answer, we will continue to the next step. */ -if (!process.env.OPENAI_API_KEY2) { +if (!process.env.OPENAI_API_KEY) { log.warning( 'No OPENAI_API_KEY found in environment variables. Fabrice starter projects use OpenAI and require an API key.' ) diff --git a/packages/framework/package.json b/packages/framework/package.json index c5ade12..44c3434 100644 --- a/packages/framework/package.json +++ b/packages/framework/package.json @@ -21,7 +21,10 @@ }, "./providers/*": { "bun": "./src/providers/*.ts", - "types": "./dist/providers/*.d.ts", + "types": { + "import": "./dist/providers/*.d.ts", + "require": "./dist/providers/*.d.cts" + }, "require": "./dist/providers/*.cjs", "import": "./dist/providers/*.js" } @@ -56,5 +59,5 @@ "engines": { "node": ">=22" }, - "version": "0.5.1" + "version": "0.5.0" }