release: WRNexusJS 0.6.0

This commit is contained in:
2026-08-01 01:09:58 +05:30
parent 3e565e8d03
commit 687d345882
502 changed files with 33038 additions and 11358 deletions
+15 -10
View File
@@ -1,12 +1,7 @@
import {
copyFileSync,
existsSync,
mkdirSync,
readFileSync,
rmSync,
writeFileSync,
} from "node:fs";
import { copyFileSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { dirname, join, resolve } from "node:path";
import console from "node:console";
import process from "node:process";
import { fileURLToPath } from "node:url";
const scriptDir = dirname(fileURLToPath(import.meta.url));
@@ -39,10 +34,20 @@ for (const name of ["ContextMenu.wrn", "Drawer.wrn", "Dropdown.wrn", "Modal.wrn"
const tooltipUpper = join(root, "packages", "ui", "components", "Tooltip.wrn");
const tooltipLower = join(root, "packages", "ui", "components", "tooltip.wrn");
const tooltipTargetName = existsSync(tooltipUpper) ? "Tooltip.wrn" : existsSync(tooltipLower) ? "tooltip.wrn" : "Tooltip.wrn";
const tooltipTargetName = existsSync(tooltipUpper)
? "Tooltip.wrn"
: existsSync(tooltipLower)
? "tooltip.wrn"
: "Tooltip.wrn";
writeFromPack("Tooltip.wrn", tooltipTargetName);
const generatorPath = join(root, "examples", "component-showcase", "scripts", "generate-showcase.mjs");
const generatorPath = join(
root,
"examples",
"component-showcase",
"scripts",
"generate-showcase.mjs",
);
if (!existsSync(generatorPath)) throw new Error(`Missing showcase generator: ${generatorPath}`);
backup(generatorPath);
let generator = readFileSync(generatorPath, "utf8");