change path resolver to `AIK` resolve function now that i figured it out... XD

This commit is contained in:
Adam Matthiesen 2024-03-04 12:50:20 -08:00
parent c077205215
commit f881e4f2a6
1 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,3 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import fse from "fs-extra";
import { createResolver, defineIntegration } from "astro-integration-kit";
import { corePlugins } from "astro-integration-kit/plugins";
@ -260,9 +258,7 @@ export default defineIntegration({
);
// Get the local version of Astro-GhostCMS
const packageJson = await fse.readJson(
path.resolve(fileURLToPath(import.meta.url), "../../package.json"),
);
const packageJson = await fse.readJson(resolve("../package.json"));
const localVersion = packageJson.version;
// Log the version check