[PCPlugin] Replace exports and add new

This commit is contained in:
Ducko 2021-04-04 18:13:48 +01:00 committed by Keanu
parent 3f46914b3f
commit 9ae7e3260f
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export default (manifestPath, repo) => {
const content = readFileSync(pcManifest.main || 'index.js', 'utf8');//.replace(/\\/g, '\\\\').replace(/`/g, '\\`');
const jsCode = content;
const jsCode = content.replace(`module.exports = class`, `export default new class`);
writeFileSync(`${manifestPath}/goosemodModule.json`, JSON.stringify(manifest));
writeFileSync(`${manifestPath}/index.js`, jsCode);