MCPcopy Index your code
hub / github.com/QwikDev/qwik / validatePath

Function validatePath

scripts/validate-build.ts:185–195  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

183
184async function validatePackageJson(config: BuildConfig, pkg: PackageJSON, errors: string[]) {
185 async function validatePath(path: string) {
186 try {
187 await access(join(config.distQwikPkgDir, path));
188 } catch (e: any) {
189 errors.push(
190 `Error loading file "${path}" referenced in package.json: ${String(
191 e ? e.stack || e : 'Error'
192 )}`
193 );
194 }
195 }
196
197 await Promise.all([validatePath(pkg.main), validatePath(pkg.types)]);
198

Callers 2

validatePackageJsonFunction · 0.85
validateExportsFunction · 0.85

Calls 2

accessFunction · 0.90
joinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…