Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "publint", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Lint packaging errors", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -339,2 +339,12 @@ import { | ||
// types. check file existence only | ||
if (currentPath.includes('types')) { | ||
const pq = createPromiseQueue() | ||
for (const filePath of exportsFiles) { | ||
pq.push(async () => await readFile(filePath, currentPath)) | ||
} | ||
await pq.wait() | ||
return | ||
} | ||
const pq = createPromiseQueue() | ||
@@ -430,22 +440,9 @@ | ||
for (const key of exportsKeys) { | ||
if (key === 'types') { | ||
// only check file existence | ||
promiseQueue.push(async () => { | ||
const typesFiles = await getExportsFiles(exports[key]) | ||
const typesPath = currentPath.concat(key) | ||
const pq = createPromiseQueue() | ||
for (const typesFile of typesFiles) { | ||
pq.push(async () => await readFile(typesFile, typesPath)) | ||
} | ||
await pq.wait() | ||
}) | ||
} else { | ||
crawlExports( | ||
exports[key], | ||
currentPath.concat(key), | ||
isKeyAfterNodeCondition | ||
) | ||
if (key === 'node') { | ||
isKeyAfterNodeCondition = true | ||
} | ||
crawlExports( | ||
exports[key], | ||
currentPath.concat(key), | ||
isKeyAfterNodeCondition | ||
) | ||
if (key === 'node') { | ||
isKeyAfterNodeCondition = true | ||
} | ||
@@ -452,0 +449,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36417
1004