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