Merge Branch create-util #19
|
@ -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",
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue