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

Function validateExports

scripts/validate-build.ts:199–212  ·  view source on GitHub ↗
(exports: Record<string, any>)

Source from the content-addressed store, hash-verified

197 await Promise.all([validatePath(pkg.main), validatePath(pkg.types)]);
198
199 async function validateExports(exports: Record<string, any>) {
200 const exportKeys = Object.keys(exports);
201
202 await Promise.all(
203 exportKeys.map(async (exportKey) => {
204 const val = exports[exportKey];
205 if (typeof val === 'string') {
206 await validatePath(val);
207 } else {
208 await validateExports(val);
209 }
210 })
211 );
212 }
213
214 validateExports(pkg.exports!);
215}

Callers 1

validatePackageJsonFunction · 0.85

Calls 1

validatePathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…