You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/scripts/copyClient.js

11 lines
233 B

const fs = require('fs-extra')
const glob = require('globby')
function toDest(file) {
return file.replace(/^src\//, 'dist/')
}
glob.sync('src/client/**/!(*.ts|tsconfig.json)').forEach((file) => {
fs.copy(file, toDest(file))
})