MCPcopy Create free account
hub / github.com/remix-run/react-router / getMissingChangelogPackageDirNames

Function getMissingChangelogPackageDirNames

scripts/changes/validate.ts:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { formatValidationErrors, parseAllChangeFiles } from "./changes.ts";
5
6function getMissingChangelogPackageDirNames(): string[] {
7 let packageDirNames = getAllPackageDirNames();
8 let missing: string[] = [];
9
10 for (let packageDirName of packageDirNames) {
11 let changelogPath = getPackageFile(packageDirName, "CHANGELOG.md");
12 if (!fs.existsSync(changelogPath)) {
13 missing.push(packageDirName);
14 }
15 }
16
17 return missing;
18}
19
20/**
21 * Validates all change files in the repository

Callers 1

mainFunction · 0.85

Calls 3

getAllPackageDirNamesFunction · 0.90
getPackageFileFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected