mirror of https://github.com/vuejs/vitepress
chore: copy shared files in parallel (#823)
parent
42cbd31327
commit
47f1df5a5a
@ -1,7 +1,9 @@
|
|||||||
import { copy } from 'fs-extra'
|
import { copy } from 'fs-extra'
|
||||||
import fg from 'fast-glob'
|
import fg from 'fast-glob'
|
||||||
|
|
||||||
fg.sync('src/shared/**/*.ts').map(async (file) => {
|
fg.sync('src/shared/**/*.ts').forEach(async (file) => {
|
||||||
await copy(file, file.replace(/^src\/shared\//, 'src/node/'))
|
await Promise.all([
|
||||||
await copy(file, file.replace(/^src\/shared\//, 'src/client/'))
|
copy(file, file.replace(/^src\/shared\//, 'src/node/')),
|
||||||
|
copy(file, file.replace(/^src\/shared\//, 'src/client/'))
|
||||||
|
])
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in new issue