Skip to content

Commit

Permalink
Update build.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin authored Sep 27, 2023
1 parent 37a43b9 commit aa73369
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { existsSync, rmdirSync } from "fs"
// eslint-disable-next-line n/no-unsupported-features/node-builtins
import { copyFileSync, existsSync, mkdirSync, rmdirSync } from "fs"
import { join } from "path"

import { build } from "vite"

if (existsSync(join(__dirname, "../dist")))
rmdirSync(join(__dirname, "../dist"), { recursive: true })

mkdirSync(join(__dirname, "../dist"))
copyFileSync(join(__dirname, "../README.md"), join(__dirname, "../dist/README.md"))

build({
base: "./",
build: {
Expand Down

0 comments on commit aa73369

Please sign in to comment.