@netlify/build 29.11.7 → 29.12.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.
|
@@ -12,6 +12,7 @@ const getFeatureFlag = function (name) {
|
|
|
12
12
|
export const DEFAULT_FEATURE_FLAGS = {
|
|
13
13
|
buildbot_zisi_trace_nft: false,
|
|
14
14
|
buildbot_zisi_esbuild_parser: false,
|
|
15
|
+
buildbot_zisi_system_log: false,
|
|
15
16
|
edge_functions_cache_cli: false,
|
|
16
17
|
edge_functions_system_logger: false,
|
|
17
18
|
};
|
|
@@ -12,7 +12,7 @@ const getBundlers = (results = []) =>
|
|
|
12
12
|
new Set(results
|
|
13
13
|
.map((bundle) => (bundle.runtime === RUNTIME.JAVASCRIPT ? bundle.bundler : null))
|
|
14
14
|
.filter(Boolean));
|
|
15
|
-
const zipFunctionsAndLogResults = async ({ buildDir, childEnv, featureFlags, functionsConfig, functionsDist, functionsSrc, internalFunctionsSrc, isRunningLocally, logs, repositoryRoot, userNodeVersion, }) => {
|
|
15
|
+
const zipFunctionsAndLogResults = async ({ buildDir, childEnv, featureFlags, functionsConfig, functionsDist, functionsSrc, internalFunctionsSrc, isRunningLocally, logs, repositoryRoot, userNodeVersion, systemLog, }) => {
|
|
16
16
|
const zisiParameters = getZisiParameters({
|
|
17
17
|
buildDir,
|
|
18
18
|
childEnv,
|
|
@@ -23,6 +23,7 @@ const zipFunctionsAndLogResults = async ({ buildDir, childEnv, featureFlags, fun
|
|
|
23
23
|
isRunningLocally,
|
|
24
24
|
repositoryRoot,
|
|
25
25
|
userNodeVersion,
|
|
26
|
+
systemLog,
|
|
26
27
|
});
|
|
27
28
|
try {
|
|
28
29
|
// Printing an empty line before bundling output.
|
|
@@ -38,7 +39,7 @@ const zipFunctionsAndLogResults = async ({ buildDir, childEnv, featureFlags, fun
|
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
41
|
// Plugin to package Netlify functions with @netlify/zip-it-and-ship-it
|
|
41
|
-
const coreStep = async function ({ childEnv, constants: { INTERNAL_FUNCTIONS_SRC: relativeInternalFunctionsSrc, IS_LOCAL: isRunningLocally, FUNCTIONS_SRC: relativeFunctionsSrc, FUNCTIONS_DIST: relativeFunctionsDist, }, buildDir, logs, netlifyConfig, featureFlags, repositoryRoot, userNodeVersion, }) {
|
|
42
|
+
const coreStep = async function ({ childEnv, constants: { INTERNAL_FUNCTIONS_SRC: relativeInternalFunctionsSrc, IS_LOCAL: isRunningLocally, FUNCTIONS_SRC: relativeFunctionsSrc, FUNCTIONS_DIST: relativeFunctionsDist, }, buildDir, logs, netlifyConfig, featureFlags, repositoryRoot, userNodeVersion, systemLog, }) {
|
|
42
43
|
const functionsSrc = relativeFunctionsSrc === undefined ? undefined : resolve(buildDir, relativeFunctionsSrc);
|
|
43
44
|
const functionsDist = resolve(buildDir, relativeFunctionsDist);
|
|
44
45
|
const internalFunctionsSrc = resolve(buildDir, relativeInternalFunctionsSrc);
|
|
@@ -80,6 +81,7 @@ const coreStep = async function ({ childEnv, constants: { INTERNAL_FUNCTIONS_SRC
|
|
|
80
81
|
logs,
|
|
81
82
|
repositoryRoot,
|
|
82
83
|
userNodeVersion,
|
|
84
|
+
systemLog,
|
|
83
85
|
});
|
|
84
86
|
const metrics = getMetrics(internalFunctions, userFunctions);
|
|
85
87
|
return {
|
|
@@ -17,7 +17,7 @@ const getLambdaNodeVersion = (childEnv, userNodeVersion) => {
|
|
|
17
17
|
}
|
|
18
18
|
return undefined;
|
|
19
19
|
};
|
|
20
|
-
export const getZisiParameters = ({ buildDir, childEnv, featureFlags, functionsConfig, functionsDist, internalFunctionsSrc, isRunningLocally, repositoryRoot, userNodeVersion, }) => {
|
|
20
|
+
export const getZisiParameters = ({ buildDir, childEnv, featureFlags, functionsConfig, functionsDist, internalFunctionsSrc, isRunningLocally, repositoryRoot, userNodeVersion, systemLog, }) => {
|
|
21
21
|
const nodeVersion = getLambdaNodeVersion(childEnv, userNodeVersion);
|
|
22
22
|
const manifest = join(functionsDist, 'manifest.json');
|
|
23
23
|
const config = mapObject(functionsConfig, (expression, object) => [
|
|
@@ -35,6 +35,7 @@ export const getZisiParameters = ({ buildDir, childEnv, featureFlags, functionsC
|
|
|
35
35
|
repositoryRoot,
|
|
36
36
|
configFileDirectories,
|
|
37
37
|
internalSrcFolder: internalFunctionsSrc,
|
|
38
|
+
systemLog: featureFlags.buildbot_zisi_system_log ? systemLog : undefined,
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
// The function configuration keys returned by @netlify/config are not an exact
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.12.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/core/main.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@bugsnag/js": "^7.0.0",
|
|
67
67
|
"@netlify/cache-utils": "^5.1.5",
|
|
68
|
-
"@netlify/config": "^20.4.
|
|
68
|
+
"@netlify/config": "^20.4.4",
|
|
69
69
|
"@netlify/edge-bundler": "8.16.0",
|
|
70
70
|
"@netlify/framework-info": "^9.8.8",
|
|
71
71
|
"@netlify/functions-utils": "^5.2.9",
|
|
@@ -146,5 +146,5 @@
|
|
|
146
146
|
"module": "commonjs"
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
"gitHead": "
|
|
149
|
+
"gitHead": "6bae6a398a0b4899859734425a98ca8a6ce54654"
|
|
150
150
|
}
|