release: WRNexusJS 0.8.1
This commit is contained in:
@@ -6,6 +6,7 @@ import process from "node:process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const releaseVersion = JSON.parse(readFileSync(join(root, "package.json"), "utf8")).version;
|
||||
const require = createRequire(import.meta.url);
|
||||
const componentPackages = new Set([
|
||||
"auth",
|
||||
@@ -111,7 +112,7 @@ for (const directory of packageDirectories) {
|
||||
if (hasHelperKit) helperPackageCount++;
|
||||
componentCount += components.length;
|
||||
|
||||
if (manifest.version !== "0.8.0")
|
||||
if (manifest.version !== releaseVersion)
|
||||
failures.push(`${manifest.name}: version is ${manifest.version}`);
|
||||
if (!existsSync(entry)) failures.push(`${manifest.name}: missing public entry ${main}`);
|
||||
if (!existsSync(join(packageRoot, "README.md")))
|
||||
@@ -187,7 +188,7 @@ for (const match of authSource.matchAll(/<input\b[\s\S]*?>/g)) {
|
||||
}
|
||||
|
||||
const report = {
|
||||
version: "0.8.0",
|
||||
version: releaseVersion,
|
||||
summary: {
|
||||
packageCount: packages.length,
|
||||
helperPackageCount,
|
||||
@@ -200,7 +201,7 @@ const report = {
|
||||
};
|
||||
|
||||
const markdown = [
|
||||
"# WRNexusJS 0.8.0 Package Kits",
|
||||
`# WRNexusJS ${releaseVersion} Package Kits`,
|
||||
"",
|
||||
"Every framework package has a public API/helper surface, package tests, and documentation. Packages that directly render developer-facing UI additionally provide package-owned `.wrn` blocks composed from `@wrnexus/ui`.",
|
||||
"",
|
||||
|
||||
@@ -28,6 +28,7 @@ function has(path, value) {
|
||||
}
|
||||
|
||||
const rootManifest = JSON.parse(text("package.json"));
|
||||
const releaseVersion = rootManifest.version;
|
||||
check(
|
||||
"repository governance documents exist",
|
||||
["LICENSE", "SECURITY.md", "CONTRIBUTING.md", "CHANGELOG.md", "CODE_OF_CONDUCT.md"].every(
|
||||
@@ -56,10 +57,10 @@ check(
|
||||
),
|
||||
),
|
||||
);
|
||||
check("root version is 0.8.0", rootManifest.version === "0.8.0");
|
||||
check("root version is a 0.8 release", /^0\.8\.\d+$/.test(releaseVersion));
|
||||
check(
|
||||
"all framework packages use 0.8.0",
|
||||
packageManifests.every((manifest) => manifest.version === "0.8.0"),
|
||||
`all framework packages use ${releaseVersion}`,
|
||||
packageManifests.every((manifest) => manifest.version === releaseVersion),
|
||||
);
|
||||
check(
|
||||
"standalone realtime package exists",
|
||||
|
||||
Reference in New Issue
Block a user