release: WRNexusJS 0.6.0
This commit is contained in:
+15
-10
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user