feat(admin, admin-ui, medusa-js, medusa-react, medusa): Support Admin Extensions (#4761)
Co-authored-by: Rares Stefan <948623+StephixOne@users.noreply.github.com> Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
26c78bbc03
commit
f1a05f4725
18
packages/admin-ui/src/node/actions/clean.ts
Normal file
18
packages/admin-ui/src/node/actions/clean.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import fse from "fs-extra"
|
||||
import path from "node:path"
|
||||
|
||||
type CleanArgs = {
|
||||
appDir: string
|
||||
outDir: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleans the build directory and cache directory.
|
||||
*/
|
||||
export async function clean({ appDir, outDir }: CleanArgs) {
|
||||
const cacheDir = path.resolve(appDir, ".cache", "admin")
|
||||
const buildDir = path.resolve(appDir, outDir)
|
||||
|
||||
await fse.remove(buildDir)
|
||||
await fse.remove(cacheDir)
|
||||
}
|
||||
Reference in New Issue
Block a user