Added a badge to display the monthly ramp
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
||||
import { mkdir, readFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import composition from "./compose.cjs";
|
||||
import output from "./write-output.cjs";
|
||||
|
||||
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const distDir = path.join(rootDir, "dist");
|
||||
@@ -61,10 +62,6 @@ const targets = [
|
||||
}
|
||||
];
|
||||
|
||||
if (!checkOnly) {
|
||||
await rm(distDir, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
for (const target of targets) {
|
||||
const manifestJson = `${JSON.stringify(target.manifest, null, 2)}\n`;
|
||||
JSON.parse(manifestJson);
|
||||
@@ -80,9 +77,9 @@ for (const target of targets) {
|
||||
|
||||
const outputDir = path.join(distDir, target.name);
|
||||
await mkdir(outputDir, { recursive: true });
|
||||
await writeFile(path.join(outputDir, "manifest.json"), manifestJson);
|
||||
await writeFile(path.join(outputDir, "content.js"), contentScript);
|
||||
await writeFile(path.join(outputDir, "background.js"), backgroundScript);
|
||||
await output.writeOutput(path.join(outputDir, "content.js"), contentScript);
|
||||
await output.writeOutput(path.join(outputDir, "background.js"), backgroundScript);
|
||||
await output.writeOutput(path.join(outputDir, "manifest.json"), manifestJson);
|
||||
}
|
||||
|
||||
if (!checkOnly) {
|
||||
|
||||
Reference in New Issue
Block a user