Prepare Frost 1.0.0 release candidate
This commit is contained in:
@@ -14,6 +14,13 @@ if (packageLock.name !== packageJson.name) errors.push(`package-lock.json: packa
|
||||
if (packageLock.version !== packageJson.version) errors.push(`package-lock.json: version ${packageLock.version} does not match ${packageJson.version}`);
|
||||
if (packageLock.packages?.[""]?.name !== packageJson.name) errors.push("package-lock.json: root package name is stale");
|
||||
if (packageLock.packages?.[""]?.version !== packageJson.version) errors.push("package-lock.json: root package version is stale");
|
||||
if (packageJson.publishConfig?.access !== "public") errors.push("package.json: publishConfig.access must be public");
|
||||
for (const requiredFile of ["README.md", "CHANGELOG.md", "MIGRATION.md", "SUPPORT.md", "public-api.json"]) {
|
||||
if (!packageJson.files?.includes(requiredFile)) errors.push(`package.json: files must include ${requiredFile}`);
|
||||
}
|
||||
for (const browser of ["Chrome >= 111", "Edge >= 111", "Firefox >= 113", "Safari >= 16.4"]) {
|
||||
if (!packageJson.browserslist?.includes(browser)) errors.push(`package.json: browserslist is missing ${browser}`);
|
||||
}
|
||||
|
||||
const releases = [...changelog.matchAll(/^##\s+\[?(\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?)\]?\s*$/gm)].map((match) => ({ version: match[1], index: match.index }));
|
||||
if (!releases.length) errors.push("CHANGELOG.md: no release headings found");
|
||||
|
||||
Reference in New Issue
Block a user