MCPcopy Create free account
hub / github.com/MigoXLab/coderio / assertValidationDependenciesInstalled

Function assertValidationDependenciesInstalled

src/utils/dependency-installer.ts:61–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61export function assertValidationDependenciesInstalled(): void {
62 const missing: string[] = [];
63 if (!isPackageInstalled('sharp')) missing.push('sharp');
64 if (!isPackageInstalled('playwright')) missing.push('playwright');
65
66 if (missing.length === 0) {
67 return;
68 }
69
70 throw new Error(formatValidationDependencyHelp(missing));
71}
72
73export function ensurePackageInstalled(packageName: string, packageNameInRegistry?: string) {
74 const pkgName = packageNameInRegistry || packageName;

Callers 1

Calls 3

isPackageInstalledFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected