* feat: add devDeps, add nypm for installing deps
* feat: custom ui dir
* refactor: use consola instead of chalk
* test: ui alias
* refactor: import { z } from 'zod' instead of *, replace node:path with pathe
* chore: add components name to `configFile` option
* chore: update `c12` which fix json5 parse issue
and it also supports .config directory
* chore: update `https-proxy-agent`
* fix: await until dependencies are installed then run detypes process
* feat: add tailwind prefix
* test: tw-prefix snapshot
* chore: add prefix option to init
* test: apply prefix
* fix: tw-prefix parse wrongly
* chore: hide prefix temporarily
---------
Co-authored-by: zernonia <zernonia@gmail.com>
11 lines
243 B
JavaScript
11 lines
243 B
JavaScript
import fsp from 'node:fs/promises'
|
|
|
|
function rmdir(dirs) {
|
|
dirs.forEach(async (dir) => {
|
|
await fsp.unlink(dir).catch(() => {})
|
|
await fsp.rm(dir, { recursive: true, force: true }).catch(() => {})
|
|
})
|
|
}
|
|
|
|
rmdir(['dist', 'components'])
|