feat(create-medusa-app): add support for pnpm and specifying package manager (#14443)

* feat(create-medusa-app): add support for pnpm and specifying package manager

* fixes

* add medusa command method

* add tests for package manager

* fix duplicate messages

* throw if chosen package manager is not available

* better package manager and version detector

* add debug message

* fix version detection

* fix for yarn v3

* fix migration command

* yarn v3 fix

* remove .yarn directory for non-yarn package managers

* run npm ci to validate npm installation

* fixes

* fixes

* remove corepack line

* remove if condition
This commit is contained in:
Shahed Nasser
2026-01-12 12:55:26 +02:00
committed by GitHub
parent 747d1393ae
commit 5f90cd0650
16 changed files with 1130 additions and 149 deletions
+3 -2
View File
@@ -9,8 +9,9 @@
"scripts": {
"dev": "node --loader ts-node/esm src/index.ts",
"start": "node dist/index.js",
"build": "tsc",
"watch": "yarn run -T tsc --watch"
"build": "yarn run -T tsc",
"watch": "yarn run -T tsc --watch",
"test": "../../../node_modules/.bin/jest --passWithNoTests src"
},
"dependencies": {
"@medusajs/deps": "2.12.5",