@vercel/build-utils 13.0.1 → 13.1.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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 13.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Remove --unsafe-perm from npm install command ([#14302](https://github.com/vercel/vercel/pull/14302))
|
|
8
|
+
|
|
9
|
+
## 13.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Improve warning messages surrounding Elysia ([#14272](https://github.com/vercel/vercel/pull/14272))
|
|
14
|
+
|
|
3
15
|
## 13.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -474,7 +474,7 @@ function getInstallCommandForPackageManager(packageManager, args) {
|
|
|
474
474
|
case "npm":
|
|
475
475
|
return {
|
|
476
476
|
prettyCommand: "npm install",
|
|
477
|
-
commandArguments: args.filter((a) => a !== "--prefer-offline").concat(["install", "--no-audit"
|
|
477
|
+
commandArguments: args.filter((a) => a !== "--prefer-offline").concat(["install", "--no-audit"])
|
|
478
478
|
};
|
|
479
479
|
case "pnpm":
|
|
480
480
|
return {
|
|
@@ -667,11 +667,6 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
|
|
|
667
667
|
`Detected \`${detectedLockfile}\` ${versionString}generated by ${detectedPackageManager}`
|
|
668
668
|
);
|
|
669
669
|
}
|
|
670
|
-
if (cliType === "bun") {
|
|
671
|
-
console.warn(
|
|
672
|
-
"Warning: Bun is used as a package manager at build time only, not at runtime with Functions"
|
|
673
|
-
);
|
|
674
|
-
}
|
|
675
670
|
}
|
|
676
671
|
}
|
|
677
672
|
if (cliType === "yarn" && !env.YARN_NODE_LINKER) {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { BuildV3 } from './types';
|
|
1
|
+
import { BuildV3, Config } from './types';
|
|
2
2
|
import type FileFsRef from './file-fs-ref';
|
|
3
|
-
export declare function generateNodeBuilderFunctions(frameworkName: string, regex: RegExp, validFilenames: string[], validExtensions: string[], nodeBuild: any
|
|
3
|
+
export declare function generateNodeBuilderFunctions(frameworkName: string, regex: RegExp, validFilenames: string[], validExtensions: string[], nodeBuild: any, // necessary to avoid circular dependency
|
|
4
|
+
opts?: {
|
|
5
|
+
checks?: (info: {
|
|
6
|
+
config: Config;
|
|
7
|
+
isBun: boolean;
|
|
8
|
+
}) => void;
|
|
9
|
+
}): {
|
|
4
10
|
require_: NodeRequire;
|
|
5
11
|
findEntrypoint: (files: Record<string, FileFsRef>) => {
|
|
6
12
|
entrypoint: string;
|
|
@@ -35,7 +35,7 @@ var import_glob = __toESM(require("./fs/glob"));
|
|
|
35
35
|
var import_node_path = require("node:path");
|
|
36
36
|
var import_node_fs = __toESM(require("node:fs"));
|
|
37
37
|
var import_node_module = require("node:module");
|
|
38
|
-
function generateNodeBuilderFunctions(frameworkName, regex, validFilenames, validExtensions, nodeBuild) {
|
|
38
|
+
function generateNodeBuilderFunctions(frameworkName, regex, validFilenames, validExtensions, nodeBuild, opts) {
|
|
39
39
|
const entrypointsForMessage = validFilenames.map((filename) => `- ${filename}.{${validExtensions.join(",")}}`).join("\n");
|
|
40
40
|
const require_ = (0, import_node_module.createRequire)(__filename);
|
|
41
41
|
const build = async (args) => {
|
|
@@ -57,7 +57,9 @@ function generateNodeBuilderFunctions(frameworkName, regex, validFilenames, vali
|
|
|
57
57
|
considerBuildCommand: true,
|
|
58
58
|
entrypointCallback: async () => {
|
|
59
59
|
return entrypointCallback(args);
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
|
+
checks: opts?.checks ?? (() => {
|
|
62
|
+
})
|
|
61
63
|
});
|
|
62
64
|
let version = void 0;
|
|
63
65
|
try {
|
package/dist/index.js
CHANGED
|
@@ -23597,7 +23597,7 @@ function getInstallCommandForPackageManager(packageManager, args) {
|
|
|
23597
23597
|
case "npm":
|
|
23598
23598
|
return {
|
|
23599
23599
|
prettyCommand: "npm install",
|
|
23600
|
-
commandArguments: args.filter((a) => a !== "--prefer-offline").concat(["install", "--no-audit"
|
|
23600
|
+
commandArguments: args.filter((a) => a !== "--prefer-offline").concat(["install", "--no-audit"])
|
|
23601
23601
|
};
|
|
23602
23602
|
case "pnpm":
|
|
23603
23603
|
return {
|
|
@@ -23790,11 +23790,6 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
|
|
|
23790
23790
|
`Detected \`${detectedLockfile}\` ${versionString}generated by ${detectedPackageManager}`
|
|
23791
23791
|
);
|
|
23792
23792
|
}
|
|
23793
|
-
if (cliType === "bun") {
|
|
23794
|
-
console.warn(
|
|
23795
|
-
"Warning: Bun is used as a package manager at build time only, not at runtime with Functions"
|
|
23796
|
-
);
|
|
23797
|
-
}
|
|
23798
23793
|
}
|
|
23799
23794
|
}
|
|
23800
23795
|
if (cliType === "yarn" && !env.YARN_NODE_LINKER) {
|
|
@@ -24621,7 +24616,7 @@ var defaultCachePathGlob = "**/{node_modules,.yarn/cache}/**";
|
|
|
24621
24616
|
var import_node_path = require("path");
|
|
24622
24617
|
var import_node_fs = __toESM(require("fs"));
|
|
24623
24618
|
var import_node_module = require("module");
|
|
24624
|
-
function generateNodeBuilderFunctions(frameworkName, regex, validFilenames, validExtensions, nodeBuild) {
|
|
24619
|
+
function generateNodeBuilderFunctions(frameworkName, regex, validFilenames, validExtensions, nodeBuild, opts) {
|
|
24625
24620
|
const entrypointsForMessage = validFilenames.map((filename) => `- ${filename}.{${validExtensions.join(",")}}`).join("\n");
|
|
24626
24621
|
const require_ = (0, import_node_module.createRequire)(__filename);
|
|
24627
24622
|
const build = async (args) => {
|
|
@@ -24643,7 +24638,9 @@ function generateNodeBuilderFunctions(frameworkName, regex, validFilenames, vali
|
|
|
24643
24638
|
considerBuildCommand: true,
|
|
24644
24639
|
entrypointCallback: async () => {
|
|
24645
24640
|
return entrypointCallback(args);
|
|
24646
|
-
}
|
|
24641
|
+
},
|
|
24642
|
+
checks: opts?.checks ?? (() => {
|
|
24643
|
+
})
|
|
24647
24644
|
});
|
|
24648
24645
|
let version = void 0;
|
|
24649
24646
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/build-utils",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/semver": "6.0.0",
|
|
28
28
|
"@types/yazl": "2.4.2",
|
|
29
29
|
"@vercel/error-utils": "2.0.3",
|
|
30
|
-
"@vercel/routing-utils": "5.2.
|
|
30
|
+
"@vercel/routing-utils": "5.2.2",
|
|
31
31
|
"aggregate-error": "3.0.1",
|
|
32
32
|
"async-retry": "1.2.3",
|
|
33
33
|
"async-sema": "2.1.4",
|