From 1639191d93c5b2dcff9969c11c68a0104fe5db42 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Thu, 15 Feb 2024 07:39:56 -0800 Subject: [PATCH] some type fixes --- packages/astro-ghostcms/package.json | 10 ++++++---- packages/create-astro-ghostcms/package.json | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/astro-ghostcms/package.json b/packages/astro-ghostcms/package.json index 74470e3b..968fc270 100644 --- a/packages/astro-ghostcms/package.json +++ b/packages/astro-ghostcms/package.json @@ -47,13 +47,15 @@ ], "exports": { ".": "./index.ts", - "./api": "./src/api/index.ts", + "./api": { + "types": "./src/api/index.ts", + "default": "./src/api/index.ts" + }, "./api-core": "./src/api/content-api/index.ts", "./config": { - "default": "./src/integrations/virtual-config.ts", - "types": "./src/integrations/virtual.d.ts" + "types": "./src/integrations/virtual.d.ts", + "default": "./src/integrations/virtual-config.ts" }, - "./types": "./types.d.ts", "./satoriOG": "./src/integrations/satori.ts", "./404.astro": "./src/default-routes/404/404.astro", "./rss.xml.ts": "./src/default-routes/rss.xml.ts", diff --git a/packages/create-astro-ghostcms/package.json b/packages/create-astro-ghostcms/package.json index 7734e267..dbdb5800 100644 --- a/packages/create-astro-ghostcms/package.json +++ b/packages/create-astro-ghostcms/package.json @@ -7,6 +7,7 @@ "bin": { "create-astro-ghostcms": "./create-astro-ghostcms.mjs" }, + "types": "./index.d.ts", "exports": { ".": "./create-astro-ghostcms.mjs" },