release: WRNexusJS 0.7.0
This commit is contained in:
@@ -32,16 +32,20 @@ function walk(dir, predicate = () => true) {
|
||||
const packageDirs = readdirSync(join(root, "packages"))
|
||||
.filter((name) => existsSync(join(root, "packages", name, "package.json")))
|
||||
.sort();
|
||||
if (packageDirs.length !== 33) fail(`Expected 33 framework packages, found ${packageDirs.length}`);
|
||||
else pass("33 framework packages are present");
|
||||
const frameworkVersion = readJson(join(root, "package.json")).version;
|
||||
if (packageDirs.length < 33)
|
||||
fail(`Expected at least 33 framework packages, found ${packageDirs.length}`);
|
||||
else pass(`${packageDirs.length} framework packages are present`);
|
||||
|
||||
for (const name of packageDirs) {
|
||||
const manifest = readJson(join(root, "packages", name, "package.json"));
|
||||
if (manifest.version !== "0.6.0")
|
||||
fail(`packages/${name} is ${manifest.version ?? "unversioned"}`);
|
||||
if (manifest.version !== frameworkVersion) {
|
||||
fail(`packages/${name} is ${manifest.version ?? "unversioned"}; expected ${frameworkVersion}`);
|
||||
}
|
||||
}
|
||||
if (!failures.some((item) => item.startsWith("packages/"))) {
|
||||
pass(`All framework packages are version ${frameworkVersion}`);
|
||||
}
|
||||
if (!failures.some((item) => item.startsWith("packages/")))
|
||||
pass("All framework packages are version 0.6.0");
|
||||
|
||||
for (const [label, path] of [
|
||||
["root", "package.json"],
|
||||
@@ -49,8 +53,9 @@ for (const [label, path] of [
|
||||
["managed CAPTCHA service", "services/managed-captcha/package.json"],
|
||||
]) {
|
||||
const version = readJson(join(root, path)).version;
|
||||
if (version !== "0.6.0") fail(`${label} version is ${version}`);
|
||||
else pass(`${label} version is 0.6.0`);
|
||||
if (version !== frameworkVersion)
|
||||
fail(`${label} version is ${version}; expected ${frameworkVersion}`);
|
||||
else pass(`${label} version is ${frameworkVersion}`);
|
||||
}
|
||||
|
||||
for (const path of [
|
||||
|
||||
Reference in New Issue
Block a user