This commit is contained in:
Adam Matthiesen 2024-01-28 00:38:44 -08:00
parent 639bc0ae4f
commit 49ac180b89
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -3,6 +3,7 @@ import os from "node:os";
import * as p from "@clack/prompts";
import c from "picocolors";
import { fileURLToPath } from "node:url";
import readPkg from "read-pkg";
/**
* @param {string} url
@ -64,5 +65,5 @@ export function isPackageManager(str) {
* @return {string} The current version of the package.
*/
export function getVersion() {
return require('read-pkg').sync().version;
return readPkg.sync().version;
}