@vercel/build-utils
Advanced tools
Comparing version 7.8.0 to 7.9.0
# @vercel/build-utils | ||
## 7.9.0 | ||
### Minor Changes | ||
- Add `base` parameter to `scanParentDirs()` ([#11261](https://github.com/vercel/vercel/pull/11261)) | ||
## 7.8.0 | ||
@@ -4,0 +10,0 @@ |
@@ -78,3 +78,3 @@ /// <reference types="node" /> | ||
export declare function getNodeVersion(destPath: string, nodeVersionFallback?: string | undefined, config?: Config, meta?: Meta, availableVersions?: number[]): Promise<NodeVersion>; | ||
export declare function scanParentDirs(destPath: string, readPackageJson?: boolean): Promise<ScanParentDirsResult>; | ||
export declare function scanParentDirs(destPath: string, readPackageJson?: boolean, base?: string): Promise<ScanParentDirsResult>; | ||
export declare function walkParentDirs({ base, start, filename, }: WalkParentDirsProps): Promise<string | null>; | ||
@@ -81,0 +81,0 @@ export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta, nodeVersion?: NodeVersion): Promise<boolean>; |
@@ -203,6 +203,6 @@ "use strict"; | ||
} | ||
async function scanParentDirs(destPath, readPackageJson = false) { | ||
async function scanParentDirs(destPath, readPackageJson = false, base = "/") { | ||
(0, import_assert.default)(import_path.default.isAbsolute(destPath)); | ||
const pkgJsonPath = await walkParentDirs({ | ||
base: "/", | ||
base, | ||
start: destPath, | ||
@@ -213,3 +213,3 @@ filename: "package.json" | ||
const [yarnLockPath, npmLockPath, pnpmLockPath, bunLockPath] = await walkParentDirsMulti({ | ||
base: "/", | ||
base, | ||
start: destPath, | ||
@@ -216,0 +216,0 @@ filenames: [ |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "7.8.0", | ||
"version": "7.9.0", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
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
1203065