fix(create-medusa-app): remove warnings on installation (#9405)

This commit is contained in:
Shahed Nasser
2024-10-02 13:27:13 +03:00
committed by GitHub
parent 02629625ec
commit cb5c228a36
4 changed files with 8 additions and 3 deletions

View File

@@ -13,7 +13,6 @@
"watch": "tsc --watch"
},
"dependencies": {
"@medusajs/utils": "^1.11.9",
"boxen": "^5",
"chalk": "^5.2.0",
"commander": "^10.0.1",

View File

@@ -25,7 +25,7 @@ import {
installNextjsStarter,
startNextjsStarter,
} from "../utils/nextjs-utils.js"
import { getNodeVersion, MIN_SUPPORTED_NODE_VERSION } from "@medusajs/utils"
import { getNodeVersion, MIN_SUPPORTED_NODE_VERSION } from "../utils/node-version.js"
const slugify = slugifyType.default

View File

@@ -0,0 +1,7 @@
export function getNodeVersion(): number {
const [major] = process.versions.node.split('.').map(Number)
return major
}
export const MIN_SUPPORTED_NODE_VERSION = 20

View File

@@ -16913,7 +16913,6 @@ __metadata:
version: 0.0.0-use.local
resolution: "create-medusa-app@workspace:packages/cli/create-medusa-app"
dependencies:
"@medusajs/utils": ^1.11.9
"@types/chalk": ^2.2.0
"@types/commander": ^2.12.2
"@types/configstore": ^6.0.0