Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "publint", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Lint packaging errors", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -266,3 +266,4 @@ import { | ||
promiseQueue.push(async () => { | ||
await readFile(fieldValue, currentPath) | ||
const browserPath = vfs.pathJoin(pkgDir, fieldValue) | ||
await readFile(browserPath, currentPath) | ||
}) | ||
@@ -269,0 +270,0 @@ } else if (typeof fieldValue === 'object') { |
@@ -137,4 +137,9 @@ /** | ||
const pkgJsonPath = vfs.pathJoin(currentDir, 'package.json') | ||
if (await vfs.isPathExist(pkgJsonPath)) | ||
return JSON.parse(await vfs.readFile(pkgJsonPath)) | ||
if (await vfs.isPathExist(pkgJsonPath)) { | ||
try { | ||
return JSON.parse(await vfs.readFile(pkgJsonPath)) | ||
} catch { | ||
// ignore malformed package.json **cough** resolve **cough** | ||
} | ||
} | ||
const nextDir = vfs.getDirName(currentDir) | ||
@@ -141,0 +146,0 @@ if (nextDir === currentDir) break |
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
30468
825