@vercel/build-utils 7.8.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/fs/run-user-scripts.d.ts +1 -1
- package/dist/fs/run-user-scripts.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -75,7 +75,7 @@ export declare function getNodeBinPaths({ start, base, }: TraverseUpDirectoriesP
|
|
75
75
|
export declare function runShellScript(fsPath: string, args?: string[], spawnOpts?: SpawnOptions): Promise<boolean>;
|
76
76
|
export declare function getSpawnOptions(meta: Meta, nodeVersion: NodeVersion): SpawnOptions;
|
77
77
|
export declare function getNodeVersion(destPath: string, nodeVersionFallback?: string | undefined, config?: Config, meta?: Meta, availableVersions?: number[]): Promise<NodeVersion>;
|
78
|
-
export declare function scanParentDirs(destPath: string, readPackageJson?: boolean): Promise<ScanParentDirsResult>;
|
78
|
+
export declare function scanParentDirs(destPath: string, readPackageJson?: boolean, base?: string): Promise<ScanParentDirsResult>;
|
79
79
|
export declare function walkParentDirs({ base, start, filename, }: WalkParentDirsProps): Promise<string | null>;
|
80
80
|
export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta, nodeVersion?: NodeVersion): Promise<boolean>;
|
81
81
|
/**
|
@@ -200,16 +200,16 @@ async function getNodeVersion(destPath, nodeVersionFallback = process.env.VERCEL
|
|
200
200
|
}
|
201
201
|
return (0, import_node_version.getSupportedNodeVersion)(nodeVersion, isAuto, availableVersions);
|
202
202
|
}
|
203
|
-
async function scanParentDirs(destPath, readPackageJson = false) {
|
203
|
+
async function scanParentDirs(destPath, readPackageJson = false, base = "/") {
|
204
204
|
(0, import_assert.default)(import_path.default.isAbsolute(destPath));
|
205
205
|
const pkgJsonPath = await walkParentDirs({
|
206
|
-
base
|
206
|
+
base,
|
207
207
|
start: destPath,
|
208
208
|
filename: "package.json"
|
209
209
|
});
|
210
210
|
const packageJson = readPackageJson && pkgJsonPath ? JSON.parse(await import_fs_extra.default.readFile(pkgJsonPath, "utf8")) : void 0;
|
211
211
|
const [yarnLockPath, npmLockPath, pnpmLockPath, bunLockPath] = await walkParentDirsMulti({
|
212
|
-
base
|
212
|
+
base,
|
213
213
|
start: destPath,
|
214
214
|
filenames: [
|
215
215
|
"yarn.lock",
|
package/dist/index.js
CHANGED
@@ -21919,16 +21919,16 @@ async function getNodeVersion(destPath, nodeVersionFallback = process.env.VERCEL
|
|
21919
21919
|
}
|
21920
21920
|
return getSupportedNodeVersion(nodeVersion, isAuto, availableVersions);
|
21921
21921
|
}
|
21922
|
-
async function scanParentDirs(destPath, readPackageJson = false) {
|
21922
|
+
async function scanParentDirs(destPath, readPackageJson = false, base = "/") {
|
21923
21923
|
(0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
|
21924
21924
|
const pkgJsonPath = await walkParentDirs({
|
21925
|
-
base
|
21925
|
+
base,
|
21926
21926
|
start: destPath,
|
21927
21927
|
filename: "package.json"
|
21928
21928
|
});
|
21929
21929
|
const packageJson = readPackageJson && pkgJsonPath ? JSON.parse(await import_fs_extra7.default.readFile(pkgJsonPath, "utf8")) : void 0;
|
21930
21930
|
const [yarnLockPath, npmLockPath, pnpmLockPath, bunLockPath] = await walkParentDirsMulti({
|
21931
|
-
base
|
21931
|
+
base,
|
21932
21932
|
start: destPath,
|
21933
21933
|
filenames: [
|
21934
21934
|
"yarn.lock",
|