This commit is contained in:
Adam Matthiesen 2024-01-28 01:10:49 -08:00
parent d28f6da0cf
commit 45a270702e
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@matthiesenxyz/create-astro-ghostcms",
"version": "0.0.1-dev38",
"version": "0.0.1-dev39",
"description": "Utility to quickly get started with our Integration and astro",
"type": "module",
"main": "./create-astro-ghostcms.mjs",

View File

@ -1,10 +1,11 @@
import arg from "arg";
import * as p from "@clack/prompts";
import c from 'picocolors';
import { exitPrompt, isPackageManager } from "./lib/utils.js";
import { exitPrompt, getModulePaths, isPackageManager } from "./lib/utils.js";
import { createBasic } from "./runners/basic.js";
import { createStarterKit } from "./runners/starterkit.js";
import fse from "fs-extra";
import path from "node:path";
export async function main() {
@ -44,7 +45,9 @@ export async function main() {
return;
}
const packageJSON = await fse.readJson('../package.json');
const { pathname } = getModulePaths(import.meta.url);
const inputJSON = path.resolve(pathname, "..", 'package.json');
const packageJSON = await fse.readJson(inputJSON);
const pkgVer = packageJSON.version;
// 1. Say hello!