element-plus/play/vite.init.ts

9 lines
190 B
TypeScript

import { existsSync, writeFileSync, readFileSync } from 'fs'
const play = 'play.vue'
const example = 'play.example'
if (!existsSync(play)) {
writeFileSync(play, readFileSync(example))
}