@netlify/build 18.17.6 → 18.19.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.19.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"main": "src/core/main.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@netlify/plugin-edge-handlers": "^1.11.22",
|
|
62
62
|
"@netlify/plugins-list": "^4.0.1",
|
|
63
63
|
"@netlify/run-utils": "^2.0.0",
|
|
64
|
-
"@netlify/zip-it-and-ship-it": "^4.
|
|
64
|
+
"@netlify/zip-it-and-ship-it": "^4.27.0",
|
|
65
65
|
"@sindresorhus/slugify": "^1.1.0",
|
|
66
66
|
"@ungap/from-entries": "^0.2.1",
|
|
67
67
|
"ansi-escapes": "^4.3.2",
|
|
@@ -17,7 +17,9 @@ const getFeatureFlag = function (name) {
|
|
|
17
17
|
const DEFAULT_FEATURE_FLAGS = {
|
|
18
18
|
buildbot_build_go_functions: false,
|
|
19
19
|
buildbot_es_modules_esbuild: false,
|
|
20
|
+
buildbot_zisi_trace_nft: false,
|
|
20
21
|
buildbot_zisi_esbuild_parser: false,
|
|
22
|
+
buildbot_scheduled_functions: false,
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
module.exports = { normalizeCliFeatureFlags, DEFAULT_FEATURE_FLAGS }
|
|
@@ -4,6 +4,7 @@ const getZisiFeatureFlags = (featureFlags) => ({
|
|
|
4
4
|
buildGoSource: featureFlags.buildbot_build_go_functions,
|
|
5
5
|
defaultEsModulesToEsbuild: featureFlags.buildbot_es_modules_esbuild,
|
|
6
6
|
parseWithEsbuild: featureFlags.buildbot_zisi_esbuild_parser,
|
|
7
|
+
traceWithNft: featureFlags.buildbot_zisi_trace_nft,
|
|
7
8
|
})
|
|
8
9
|
|
|
9
10
|
module.exports = { getZisiFeatureFlags }
|
|
@@ -22,7 +22,7 @@ const isUsingEsbuild = (functionsConfig = {}) =>
|
|
|
22
22
|
// The function configuration keys returned by @netlify/config are not an exact
|
|
23
23
|
// match to the properties that @netlify/zip-it-and-ship-it expects. We do that
|
|
24
24
|
// translation here.
|
|
25
|
-
const normalizeFunctionConfig = ({ buildDir, functionConfig = {}, isRunningLocally }) => ({
|
|
25
|
+
const normalizeFunctionConfig = ({ buildDir, featureFlags, functionConfig = {}, isRunningLocally }) => ({
|
|
26
26
|
externalNodeModules: functionConfig.external_node_modules,
|
|
27
27
|
includedFiles: functionConfig.included_files,
|
|
28
28
|
includedFilesBasePath: buildDir,
|
|
@@ -39,6 +39,8 @@ const normalizeFunctionConfig = ({ buildDir, functionConfig = {}, isRunningLocal
|
|
|
39
39
|
// path that will get cached in between builds, allowing us to speed up the
|
|
40
40
|
// build process.
|
|
41
41
|
rustTargetDirectory: isRunningLocally ? undefined : resolve(buildDir, '.netlify', 'rust-functions-cache', '[name]'),
|
|
42
|
+
|
|
43
|
+
schedule: featureFlags.buildbot_scheduled_functions ? functionConfig.schedule : undefined,
|
|
42
44
|
})
|
|
43
45
|
|
|
44
46
|
const getZisiParameters = ({
|
package/types/index.d.ts
CHANGED