@vercel/build-utils
Advanced tools
Comparing version 2.12.0 to 2.12.1-canary.0
@@ -160,4 +160,6 @@ "use strict"; | ||
if (await fs_extra_1.default.pathExists(packageJsonPath)) { | ||
// eslint-disable-next-line no-await-in-loop | ||
if (readPackageJson) { | ||
// Only read the contents of the *first* `package.json` file found, | ||
// since that's the one related to this installation. | ||
if (readPackageJson && !packageJson) { | ||
// eslint-disable-next-line no-await-in-loop | ||
packageJson = JSON.parse(await fs_extra_1.default.readFile(packageJsonPath, 'utf8')); | ||
@@ -174,5 +176,3 @@ } | ||
} | ||
else { | ||
throw error; | ||
} | ||
throw error; | ||
}), | ||
@@ -185,3 +185,8 @@ fs_extra_1.default.pathExists(path_1.default.join(currentDestPath, 'yarn.lock')), | ||
} | ||
break; | ||
// Only stop iterating if a lockfile was found, because it's possible | ||
// that the lockfile is in a higher path than where the `package.json` | ||
// file was found. | ||
if (packageLockJson || hasYarnLock) { | ||
break; | ||
} | ||
} | ||
@@ -188,0 +193,0 @@ const newDestPath = path_1.default.dirname(currentDestPath); |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "2.12.0", | ||
"version": "2.12.1-canary.0", | ||
"license": "MIT", | ||
@@ -33,3 +33,3 @@ "main": "./dist/index.js", | ||
"@types/yazl": "^2.4.1", | ||
"@vercel/frameworks": "0.5.0", | ||
"@vercel/frameworks": "0.5.1-canary.0", | ||
"@vercel/ncc": "0.24.0", | ||
@@ -45,3 +45,2 @@ "aggregate-error": "3.0.1", | ||
"into-stream": "5.0.0", | ||
"jest": "27.0.6", | ||
"js-yaml": "3.13.1", | ||
@@ -52,7 +51,6 @@ "minimatch": "3.0.4", | ||
"semver": "6.1.1", | ||
"ts-jest": "27.0.4", | ||
"typescript": "4.3.4", | ||
"yazl": "2.4.3" | ||
}, | ||
"gitHead": "1a776ad3438a435c4ee8cca462b06d09a7d43008" | ||
"gitHead": "3db8618885b86152f52920361a45c6810b258772" | ||
} |
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1334755
31
32578
1