You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ass/common/fix-frontend-js.js

15 lines
412 B

const fs = require('fs-extra');
const { path } = require('@tycrek/joint');
const log = new (require('@tycrek/log').TLog)();
log.info('Fixing frontend JS');
// Read & fix file data
const setupUiFile = path.join('dist-frontend/setup.mjs');
const setupUiNew = fs.readFileSync(setupUiFile).toString().replace('export {};', '');
// Write new file
fs.writeFileSync(setupUiFile, setupUiNew);
log.success('Fixed.');