@vercel/build-utils 13.2.7 → 13.2.9
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 +12 -0
- package/dist/fs/run-user-scripts.d.ts +6 -1
- package/dist/fs/run-user-scripts.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 13.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- replace getRuntimeNodeVersion with getNodeVersion ([#14622](https://github.com/vercel/vercel/pull/14622))
|
|
8
|
+
|
|
9
|
+
## 13.2.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Remove getSpawnOptions ([#14604](https://github.com/vercel/vercel/pull/14604))
|
|
14
|
+
|
|
3
15
|
## 13.2.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -84,8 +84,13 @@ export declare function getNodeBinPath({ cwd, }: {
|
|
|
84
84
|
}): Promise<string>;
|
|
85
85
|
export declare function getNodeBinPaths({ start, base, }: TraverseUpDirectoriesProps): string[];
|
|
86
86
|
export declare function runShellScript(fsPath: string, args?: string[], spawnOpts?: SpawnOptions): Promise<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Don't use this function directly.
|
|
89
|
+
*
|
|
90
|
+
* Use getEnvForPackageManager() instead when within a builder.
|
|
91
|
+
*/
|
|
87
92
|
export declare function getSpawnOptions(meta: Meta, nodeVersion: NodeVersion): SpawnOptions;
|
|
88
|
-
export declare function
|
|
93
|
+
export declare function getNodeVersion(destPath: string, fallbackVersion?: string | undefined, config?: Config, meta?: Meta, availableVersions?: number[]): Promise<NodeVersion | BunVersion>;
|
|
89
94
|
export declare function scanParentDirs(destPath: string, readPackageJson?: boolean, base?: string): Promise<ScanParentDirsResult>;
|
|
90
95
|
export declare function turboVersionSpecifierSupportsCorepack(turboVersionSpecifier: string): boolean;
|
|
91
96
|
export declare function usingCorepack(env: {
|
|
@@ -34,9 +34,9 @@ __export(run_user_scripts_exports, {
|
|
|
34
34
|
getEnvForPackageManager: () => getEnvForPackageManager,
|
|
35
35
|
getNodeBinPath: () => getNodeBinPath,
|
|
36
36
|
getNodeBinPaths: () => getNodeBinPaths,
|
|
37
|
+
getNodeVersion: () => getNodeVersion,
|
|
37
38
|
getPathForPackageManager: () => getPathForPackageManager,
|
|
38
39
|
getPathOverrideForPackageManager: () => getPathOverrideForPackageManager,
|
|
39
|
-
getRuntimeNodeVersion: () => getRuntimeNodeVersion,
|
|
40
40
|
getScriptName: () => getScriptName,
|
|
41
41
|
getSpawnOptions: () => getSpawnOptions,
|
|
42
42
|
installDependencies: () => installDependencies,
|
|
@@ -203,7 +203,7 @@ function getSpawnOptions(meta, nodeVersion) {
|
|
|
203
203
|
}
|
|
204
204
|
return opts;
|
|
205
205
|
}
|
|
206
|
-
async function
|
|
206
|
+
async function getNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = (0, import_node_version.getAvailableNodeVersions)()) {
|
|
207
207
|
if (config.bunVersion) {
|
|
208
208
|
return (0, import_node_version.getSupportedBunVersion)(config.bunVersion);
|
|
209
209
|
}
|
|
@@ -1092,9 +1092,9 @@ const installDependencies = (0, import_util.deprecate)(
|
|
|
1092
1092
|
getEnvForPackageManager,
|
|
1093
1093
|
getNodeBinPath,
|
|
1094
1094
|
getNodeBinPaths,
|
|
1095
|
+
getNodeVersion,
|
|
1095
1096
|
getPathForPackageManager,
|
|
1096
1097
|
getPathOverrideForPackageManager,
|
|
1097
|
-
getRuntimeNodeVersion,
|
|
1098
1098
|
getScriptName,
|
|
1099
1099
|
getSpawnOptions,
|
|
1100
1100
|
installDependencies,
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import download, { downloadFile, DownloadedFiles, isSymbolicLink, isDirectory }
|
|
|
8
8
|
import getWriteableDirectory from './fs/get-writable-directory';
|
|
9
9
|
import glob, { GlobOptions } from './fs/glob';
|
|
10
10
|
import rename from './fs/rename';
|
|
11
|
-
import { spawnAsync, execCommand, spawnCommand, walkParentDirs, getScriptName, installDependencies, runPackageJsonScript, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager,
|
|
11
|
+
import { spawnAsync, execCommand, spawnCommand, walkParentDirs, getScriptName, installDependencies, runPackageJsonScript, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, detectPackageManager, getSpawnOptions, getNodeBinPath, getNodeBinPaths, scanParentDirs, traverseUpDirectories } from './fs/run-user-scripts';
|
|
12
12
|
import { getLatestNodeVersion, getDiscontinuedNodeVersions, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion } from './fs/node-version';
|
|
13
13
|
import streamToBuffer, { streamToBufferChunks } from './fs/stream-to-buffer';
|
|
14
14
|
import debug from './debug';
|
|
@@ -18,7 +18,7 @@ import { getPrefixedEnvVars } from './get-prefixed-env-vars';
|
|
|
18
18
|
import { cloneEnv } from './clone-env';
|
|
19
19
|
import { hardLinkDir } from './hard-link-dir';
|
|
20
20
|
import { validateNpmrc } from './validate-npmrc';
|
|
21
|
-
export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, DownloadedFiles, getWriteableDirectory, glob, GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion, detectPackageManager, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager,
|
|
21
|
+
export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, DownloadedFiles, getWriteableDirectory, glob, GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion, detectPackageManager, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, getPlatformEnv, getPrefixedEnvVars, streamToBuffer, streamToBufferChunks, debug, isSymbolicLink, isDirectory, getLambdaOptionsFromFunction, scanParentDirs, getIgnoreFilter, cloneEnv, hardLinkDir, traverseUpDirectories, validateNpmrc, };
|
|
22
22
|
export { EdgeFunction } from './edge-function';
|
|
23
23
|
export { readConfigFile, getPackageJson } from './fs/read-config-file';
|
|
24
24
|
export { normalizePath } from './fs/normalize-path';
|
package/dist/index.js
CHANGED
|
@@ -23750,6 +23750,7 @@ __export(src_exports, {
|
|
|
23750
23750
|
getLatestNodeVersion: () => getLatestNodeVersion,
|
|
23751
23751
|
getNodeBinPath: () => getNodeBinPath,
|
|
23752
23752
|
getNodeBinPaths: () => getNodeBinPaths,
|
|
23753
|
+
getNodeVersion: () => getNodeVersion,
|
|
23753
23754
|
getOsRelease: () => getOsRelease,
|
|
23754
23755
|
getPackageJson: () => getPackageJson,
|
|
23755
23756
|
getPathForPackageManager: () => getPathForPackageManager,
|
|
@@ -23757,7 +23758,6 @@ __export(src_exports, {
|
|
|
23757
23758
|
getPrefixedEnvVars: () => getPrefixedEnvVars,
|
|
23758
23759
|
getPrettyError: () => getPrettyError,
|
|
23759
23760
|
getProvidedRuntime: () => getProvidedRuntime,
|
|
23760
|
-
getRuntimeNodeVersion: () => getRuntimeNodeVersion,
|
|
23761
23761
|
getScriptName: () => getScriptName,
|
|
23762
23762
|
getSpawnOptions: () => getSpawnOptions,
|
|
23763
23763
|
getSupportedBunVersion: () => getSupportedBunVersion,
|
|
@@ -25239,7 +25239,7 @@ function getSpawnOptions(meta, nodeVersion) {
|
|
|
25239
25239
|
}
|
|
25240
25240
|
return opts;
|
|
25241
25241
|
}
|
|
25242
|
-
async function
|
|
25242
|
+
async function getNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = getAvailableNodeVersions()) {
|
|
25243
25243
|
if (config.bunVersion) {
|
|
25244
25244
|
return getSupportedBunVersion(config.bunVersion);
|
|
25245
25245
|
}
|
|
@@ -26843,6 +26843,7 @@ async function isPythonEntrypoint(file) {
|
|
|
26843
26843
|
getLatestNodeVersion,
|
|
26844
26844
|
getNodeBinPath,
|
|
26845
26845
|
getNodeBinPaths,
|
|
26846
|
+
getNodeVersion,
|
|
26846
26847
|
getOsRelease,
|
|
26847
26848
|
getPackageJson,
|
|
26848
26849
|
getPathForPackageManager,
|
|
@@ -26850,7 +26851,6 @@ async function isPythonEntrypoint(file) {
|
|
|
26850
26851
|
getPrefixedEnvVars,
|
|
26851
26852
|
getPrettyError,
|
|
26852
26853
|
getProvidedRuntime,
|
|
26853
|
-
getRuntimeNodeVersion,
|
|
26854
26854
|
getScriptName,
|
|
26855
26855
|
getSpawnOptions,
|
|
26856
26856
|
getSupportedBunVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/build-utils",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"yazl": "2.5.1",
|
|
48
48
|
"vitest": "2.0.1",
|
|
49
49
|
"json5": "2.2.3",
|
|
50
|
-
"@vercel/
|
|
51
|
-
"@vercel/
|
|
50
|
+
"@vercel/error-utils": "2.0.3",
|
|
51
|
+
"@vercel/routing-utils": "5.3.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "node build.mjs",
|