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

View File

@@ -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 ``
}
}