Skip to content

Commit

Permalink
fix(create-medusa-app): remove warnings on installation (#9405)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Oct 2, 2024
1 parent 0262962 commit cb5c228
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/cli/create-medusa-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"watch": "tsc --watch"
},
"dependencies": {
"@medusajs/utils": "^1.11.9",
"boxen": "^5",
"chalk": "^5.2.0",
"commander": "^10.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/create-medusa-app/src/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions packages/cli/create-medusa-app/src/utils/node-version.ts
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb5c228

Please sign in to comment.