fix build copy

pull/615/head
Evan You 3 years ago
parent 8957d0f8ee
commit d655988c2b

@ -37,7 +37,7 @@
"docs": "run-p dev docs-dev",
"docs-dev": "node ./bin/vitepress dev docs",
"docs-debug": "node --inspect-brk ./bin/vitepress dev docs",
"docs-build": "npm run build && node ./bin/vitepress build docs",
"docs-build": "run-s build docs-build-only",
"docs-build-only": "node ./bin/vitepress build docs",
"docs-serve": "node ./bin/vitepress serve docs",
"ci-docs": "run-s build docs-build"

@ -5,6 +5,7 @@ function toDest(file) {
return file.replace(/^src\//, 'dist/')
}
glob.sync('src/client/**/!(*.ts|tsconfig.json)').forEach((file) => {
glob.sync('src/client/**').forEach((file) => {
if (/(\.ts|tsconfig\.json)$/.test(file)) return
fs.copy(file, toDest(file))
})

Loading…
Cancel
Save