chore(medusa-cli): Add missing utils dep (#3688)

This commit is contained in:
Oliver Windall Juhl
2023-04-03 17:18:38 +02:00
committed by GitHub
parent 47ccb0601c
commit a0c919a8d0
4 changed files with 23 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@
"jest": "^25.5.4"
},
"dependencies": {
"@medusajs/utils": "0.0.2-rc.1",
"axios": "^0.21.4",
"chalk": "^4.0.0",
"configstore": "5.0.1",
@@ -0,0 +1,14 @@
import { join } from "path"
export const getMedusaVersion = (): string => {
try {
return require(join(
process.cwd(),
`node_modules`,
`@medusajs/medusa`,
`package.json`
)).version
} catch (e) {
return ``
}
}