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

Function getAllPackageDirNames

scripts/utils/packages.ts:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12export const GITHUB_REPO_URL = "https://github.com/remix-run/react-router";
13
14export function getAllPackageDirNames(): string[] {
15 return fs.readdirSync(packagesDir).filter((name) => {
16 let packagePath = getPackagePath(name);
17 return fs.existsSync(packagePath) && fs.statSync(packagePath).isDirectory();
18 });
19}
20
21export function getPackagePath(packageDirName: string): string {
22 return path.resolve(packagesDir, packageDirName);

Callers 5

parseAllChangeFilesFunction · 0.90
getPackagesFunction · 0.90
getUnpublishedPackagesFunction · 0.90
packages.tsFile · 0.85

Calls 1

getPackagePathFunction · 0.85

Tested by

no test coverage detected