testfix
This commit is contained in:
parent
639bc0ae4f
commit
49ac180b89
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/create-astro-ghostcms",
|
"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",
|
"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",
|
||||||
|
|
|
@ -3,6 +3,7 @@ import os from "node:os";
|
||||||
import * as p from "@clack/prompts";
|
import * as p from "@clack/prompts";
|
||||||
import c from "picocolors";
|
import c from "picocolors";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
|
import readPkg from "read-pkg";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} url
|
* @param {string} url
|
||||||
|
@ -64,5 +65,5 @@ export function isPackageManager(str) {
|
||||||
* @return {string} The current version of the package.
|
* @return {string} The current version of the package.
|
||||||
*/
|
*/
|
||||||
export function getVersion() {
|
export function getVersion() {
|
||||||
return require('read-pkg').sync().version;
|
return readPkg.sync().version;
|
||||||
}
|
}
|
Loading…
Reference in New Issue