sakura/scripts/options-export/copy-options.mjs

6 lines
247 B
JavaScript
Raw Normal View History

2021-07-18 19:52:09 +08:00
import { readFileSync, writeFileSync } from 'fs'
let file = readFileSync('./src/admin/options.ts', { flag: 'r' }).toString()
file = file.replace('@/locales', './locales')
writeFileSync('./scripts/options-export/options.ts', file, { flag: 'w+' })