mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
Co-authored-by: Joaquín Sánchez Jiménez <joaquin.sanchez@fi2net.es> Co-authored-by: userquin <userquin@gmail.com> Co-authored-by: M. Bagher Abiat <zorofight94@gmail.com>
20 lines
493 B
TypeScript
20 lines
493 B
TypeScript
import { fileURLToPath } from 'url'
|
|
import fs from 'fs'
|
|
import { resolve } from 'pathe'
|
|
import fg from 'fast-glob'
|
|
|
|
const root = resolve(fileURLToPath(import.meta.url), '../../../../packages')
|
|
|
|
const ui = resolve(root, 'ui/dist/client')
|
|
const browser = resolve(root, 'browser/dist/client/__vitest__/')
|
|
|
|
const files = fg.sync('**/*', { cwd: ui })
|
|
|
|
fs.mkdirSync(browser)
|
|
fs.mkdirSync(resolve(browser, 'assets'))
|
|
|
|
files.forEach((f) => {
|
|
fs.copyFileSync(resolve(ui, f), resolve(browser, f))
|
|
})
|
|
|