* add monorepo support command develop * fix formating bug in @medusa/admin package.json * Create grumpy-bees-laugh.md --------- Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com> Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
19 lines
288 B
TypeScript
19 lines
288 B
TypeScript
import fs from "fs-extra"
|
|
import path from "path"
|
|
|
|
export function resolveAdminCLI() {
|
|
const cli = path.resolve(
|
|
require.resolve("@medusajs/admin"),
|
|
"../../",
|
|
"bin",
|
|
"medusa-admin.js"
|
|
)
|
|
|
|
const binExists = fs.existsSync(cli)
|
|
|
|
return {
|
|
binExists,
|
|
cli,
|
|
}
|
|
}
|