copyClient.js 267 B

1234567891011
  1. import { copy } from 'fs-extra'
  2. import { globSync } from 'tinyglobby'
  3. function toDest(file) {
  4. return file.replace(/^src\//, 'dist/')
  5. }
  6. globSync(['src/client/**']).forEach((file) => {
  7. if (/(\.ts|tsconfig\.json)$/.test(file)) return
  8. copy(file, toDest(file))
  9. })