From dd0f36b84e5c3043ba94b3002124c8b3eb3724a2 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Thu, 18 Jan 2024 08:50:53 -0800 Subject: [PATCH] some cleanup --- index.ts | 11 ++++++++++- package.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index da11b977..678907b2 100644 --- a/index.ts +++ b/index.ts @@ -2,9 +2,11 @@ import type { AstroIntegration } from "astro" import { ZodError, type SafeParseError, type SafeParseSuccess } from "astro/zod" import { UserConfigSchema, type UserConfig } from "./src/utils/UserConfigSchema" +const pkg = '@matthiesenxyz/astro-ghostcms' + export default function GhostCMS(options: UserConfig): AstroIntegration { return { - name: '@matthiesenxyz/astro-ghostcms', + name: pkg, hooks: { 'astro:config:setup': async ({ injectRoute, @@ -23,6 +25,13 @@ export default function GhostCMS(options: UserConfig): AstroIntegration { const entry = o.data.theme + if (entry === pkg) { + logger.info("Injecting Theme: astro-ghostcms-basetheme") + } else { + logger.info(`Injecting Theme: ${entry}`) + } + + logger.info("Injecting Route: /") injectRoute({ pattern: '/', diff --git a/package.json b/package.json index 9ad86e9f..aaf7b58b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@matthiesenxyz/astro-ghostcms", "description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content", - "version": "2.0.7", + "version": "2.0.8", "author": "MatthiesenXYZ (https://matthiesen.xyz)", "type": "module", "license": "MIT",