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

12 lines
261 B

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