fix: translations
parent
49dac893cc
commit
ba3373567e
|
@ -45,8 +45,8 @@ function readRules() {
|
|||
|
||||
export default function writeJSFile() {
|
||||
const rules = readRules()
|
||||
const names = Object.keys(new Engine(rules).getParsedRules())
|
||||
const json = JSON.stringify(JSON.stringify(rules))
|
||||
const names = Object.keys(new Engine(rules).getParsedRules())
|
||||
const jsString = `export const json = /*@__PURE__*/ ${json};\nexport default /*@__PURE__*/ JSON.parse(json);`
|
||||
fs.writeFileSync(path.resolve(outDir, 'index.js'), jsString)
|
||||
fs.writeFileSync(
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue