@vercel/build-utils 7.2.1 → 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 +6 -0
- package/dist/fs/run-user-scripts.js +5 -1
- package/dist/index.js +5 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
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
|
+
|
3
9
|
## 7.2.1
|
4
10
|
|
5
11
|
### Patch 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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/build-utils",
|
3
|
-
"version": "7.2.
|
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",
|