chore: cleanup admin function (#7285)
This commit is contained in:
5
.changeset/flat-timers-report.md
Normal file
5
.changeset/flat-timers-report.md
Normal file
@@ -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