chore: cleanup admin function (#7285)
This commit is contained in:
1 parent
9a14aeebcf
commit
ea872cbda9
2 files changed
+5
-18
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore(medusa): cleanup admin function
|
||||||
@@ -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,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user