Improve typings

Remove `DEV` blocks
This commit is contained in:
vorotamoroz committed 2026-06-18 11:09:07 +01:00
1 parent 72033472f3
commit fb93511ae7
59 files changed
+245 -421

No files matched your search

+10 -3
View File
@@ -9,10 +9,17 @@ import fs from "node:fs";
import { platform } from "node:process";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
function readJson(filePath: string) {
if (!fs.existsSync(filePath)) {
return {};
}
return JSON.parse(fs.readFileSync(filePath, "utf-8"));
}
const manifestJson = JSON.parse(fs.readFileSync("./manifest.json") + "");
const packageJson = JSON.parse(fs.readFileSync("./package.json") + "");
const updateInfo = JSON.stringify(fs.readFileSync("./updates.md") + "");
const manifestJson = readJson(path.resolve(__dirname, "manifest.json"));
const packageJson = readJson(path.resolve(__dirname, "package.json"));
const updatesPath = path.resolve(__dirname, "updates.md");
const updateInfo = JSON.stringify(fs.existsSync(updatesPath) ? fs.readFileSync(updatesPath, "utf-8") : "");
// const moduleAliasPlugin = {
// name: "module-alias",