chore: cleanup admin function (#7285)

This commit is contained in:
Riqwan Thamir
2024-05-10 10:13:14 +02:00
committed by GitHub
parent 9a14aeebcf
commit ea872cbda9
2 changed files with 5 additions and 18 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
chore(medusa): cleanup admin function

View File

@@ -1,18 +0,0 @@
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,
}
}