Skip to content

Commit

Permalink
fix build copy
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 6, 2022
1 parent 8957d0f commit d655988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion scripts/copyClient.js
Expand Up @@ -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))
})

0 comments on commit d655988

Please sign in to comment.