This commit is contained in:
parent
d28f6da0cf
commit
45a270702e
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/create-astro-ghostcms",
|
"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",
|
"description": "Utility to quickly get started with our Integration and astro",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./create-astro-ghostcms.mjs",
|
"main": "./create-astro-ghostcms.mjs",
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
import arg from "arg";
|
import arg from "arg";
|
||||||
import * as p from "@clack/prompts";
|
import * as p from "@clack/prompts";
|
||||||
import c from 'picocolors';
|
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 { createBasic } from "./runners/basic.js";
|
||||||
import { createStarterKit } from "./runners/starterkit.js";
|
import { createStarterKit } from "./runners/starterkit.js";
|
||||||
import fse from "fs-extra";
|
import fse from "fs-extra";
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
|
|
||||||
export async function main() {
|
export async function main() {
|
||||||
|
@ -44,7 +45,9 @@ export async function main() {
|
||||||
return;
|
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;
|
const pkgVer = packageJSON.version;
|
||||||
|
|
||||||
// 1. Say hello!
|
// 1. Say hello!
|
||||||
|
|
Loading…
Reference in New Issue