@vercel/build-utils 7.2.0 → 7.2.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 7.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [cli] Update bun detection and add tests for projects with both bunlock binary and yarn.lock text files ([#10583](https://github.com/vercel/vercel/pull/10583))
8
+
9
+ ## 7.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Internal variants ([#10549](https://github.com/vercel/vercel/pull/10549))
14
+
3
15
  ## 7.2.0
4
16
 
5
17
  ### Minor Changes
@@ -226,7 +226,11 @@ async function scanParentDirs(destPath, readPackageJson = false) {
226
226
  pnpmLockPath ? (0, import_read_config_file.readConfigFile)(pnpmLockPath) : null,
227
227
  bunLockPath ? import_fs_extra.default.readFile(bunLockPath, "utf8") : null
228
228
  ]);
229
- if (hasYarnLock) {
229
+ if (bunLockBin && hasYarnLock) {
230
+ cliType = "bun";
231
+ lockfilePath = bunLockPath;
232
+ lockfileVersion = 0;
233
+ } else if (hasYarnLock) {
230
234
  cliType = "yarn";
231
235
  lockfilePath = yarnLockPath;
232
236
  } else if (pnpmLockYaml) {
package/dist/index.js CHANGED
@@ -21900,7 +21900,11 @@ async function scanParentDirs(destPath, readPackageJson = false) {
21900
21900
  pnpmLockPath ? readConfigFile(pnpmLockPath) : null,
21901
21901
  bunLockPath ? import_fs_extra7.default.readFile(bunLockPath, "utf8") : null
21902
21902
  ]);
21903
- if (hasYarnLock) {
21903
+ if (bunLockBin && hasYarnLock) {
21904
+ cliType = "bun";
21905
+ lockfilePath = bunLockPath;
21906
+ lockfileVersion = 0;
21907
+ } else if (hasYarnLock) {
21904
21908
  cliType = "yarn";
21905
21909
  lockfilePath = yarnLockPath;
21906
21910
  } else if (pnpmLockYaml) {
package/dist/types.d.ts CHANGED
@@ -380,6 +380,11 @@ export interface Cron {
380
380
  path: string;
381
381
  schedule: string;
382
382
  }
383
+ export interface Flag {
384
+ key: string;
385
+ defaultValue?: unknown;
386
+ metadata: Record<string, unknown>;
387
+ }
383
388
  /** The framework which created the function */
384
389
  export interface FunctionFramework {
385
390
  slug: string;
@@ -402,6 +407,7 @@ export interface BuildResultV2Typical {
402
407
  framework?: {
403
408
  version: string;
404
409
  };
410
+ flags?: Flag[];
405
411
  }
406
412
  export type BuildResultV2 = BuildResultV2Typical | BuildResultBuildOutput;
407
413
  export interface BuildResultV3 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "7.2.0",
3
+ "version": "7.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -27,7 +27,6 @@
27
27
  "@types/semver": "6.0.0",
28
28
  "@types/yazl": "2.4.2",
29
29
  "@vercel/error-utils": "2.0.1",
30
- "@vercel/ncc": "0.24.0",
31
30
  "aggregate-error": "3.0.1",
32
31
  "async-retry": "1.2.3",
33
32
  "async-sema": "2.1.4",