feature: bundle all modules (#9324)

This commit is contained in:
Harminder Virk
2024-09-30 12:34:03 +05:30
committed by GitHub
parent a4fc9d6e0b
commit a578313db9
81 changed files with 640 additions and 226 deletions

View File

@@ -32,10 +32,16 @@
"author": "Sebastian Rindom",
"license": "MIT",
"devDependencies": {
"@mikro-orm/core": "5.9.7",
"@mikro-orm/knex": "5.9.7",
"@mikro-orm/migrations": "5.9.7",
"@mikro-orm/postgresql": "5.9.7",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/yargs": "^15.0.15",
"awilix": "^8.0.1",
"jest": "^29.7.0",
"pg": "^8.13.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
},
@@ -45,6 +51,7 @@
"configstore": "5.0.1",
"dotenv": "^16.4.5",
"execa": "^5.1.1",
"express": "^4.21.0",
"fs-exists-cached": "^1.0.0",
"fs-extra": "^10.0.0",
"glob": "^7.1.6",
@@ -63,5 +70,13 @@
"winston": "^3.8.2",
"yargs": "^15.3.1"
},
"peerDependencies": {
"@mikro-orm/core": "5.9.7",
"@mikro-orm/knex": "5.9.7",
"@mikro-orm/migrations": "5.9.7",
"@mikro-orm/postgresql": "5.9.7",
"awilix": "^8.0.1",
"pg": "^8.13.0"
},
"gitHead": "81a7ff73d012fda722f6e9ef0bd9ba0232d37808"
}

View File

@@ -39,9 +39,7 @@ function buildLocalCommands(cli, isLocalProject) {
}
try {
const cmdPath = resolveCwd.silent(
`@medusajs/medusa/dist/commands/${command}`
)!
const cmdPath = resolveCwd.silent(`@medusajs/medusa/commands/${command}`)!
return require(cmdPath).default
} catch (err) {
console.error(err)