14 lines
544 B
JavaScript
14 lines
544 B
JavaScript
import { cp, rm } from 'node:fs/promises'
|
|
import path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
|
|
const source = path.join(root, 'packages', 'slidev-theme-easy-jyy')
|
|
const destination = path.join(root, 'dist-cli', 'theme')
|
|
|
|
await rm(destination, { recursive: true, force: true })
|
|
await cp(source, destination, {
|
|
recursive: true,
|
|
filter: filename => !filename.split(path.sep).includes('node_modules') && path.basename(filename) !== '.DS_Store',
|
|
})
|