Main: Merge branch 'main' of letup-rewrite
This commit is contained in:
commit
3d642fa0c6
1 changed files with 5 additions and 0 deletions
|
|
@ -86,6 +86,11 @@ async function buildPlugin(plugin) {
|
|||
await bundle.write(options.output);
|
||||
await bundle.close();
|
||||
|
||||
const toHash = readFileSync(outPath);
|
||||
manifest.hash = createHash("sha256").update(toHash).digest("hex");
|
||||
manifest.main = "index.js";
|
||||
writeFileSync(`./dist/${plugin}/manifest.json`, JSON.stringify(manifest));
|
||||
|
||||
console.log(`${plugin}: ` + "\x1b[32m" + "Build succeed!" + "\x1b[0m");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue