Merge Branch create-util #19
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@matthiesenxyz/create-astro-ghostcms",
|
||||
"version": "0.0.1-dev34",
|
||||
"version": "0.0.1-dev35",
|
||||
"description": "Utility to quickly get started with our Integration and astro",
|
||||
"type": "module",
|
||||
"main": "./create-astro-ghostcms.mjs",
|
||||
|
|
|
@ -62,8 +62,9 @@ export function isPackageManager(str) {
|
|||
*/
|
||||
|
||||
/**
|
||||
* @return {string} The current version of the package.
|
||||
* @return {Promise<string>} The current version of the package.
|
||||
*/
|
||||
export function getVersion() {
|
||||
return readPkg.sync().version;
|
||||
export async function getVersion() {
|
||||
const pkg = await readPkg()
|
||||
return pkg.version;
|
||||
}
|
|
@ -5,7 +5,7 @@ import { exitPrompt, isPackageManager, getVersion } from "./lib/utils.js";
|
|||
import { createBasic } from "./runners/basic.js";
|
||||
import { createStarterKit } from "./runners/starterkit.js";
|
||||
|
||||
const pkgVer = getVersion()
|
||||
const pkgVer = await getVersion()
|
||||
|
||||
export async function main() {
|
||||
const exit = () => process.exit(0);
|
||||
|
|
Loading…
Reference in New Issue