@netlify/build 18.18.0 → 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
|
@@ -19,6 +19,7 @@ const DEFAULT_FEATURE_FLAGS = {
|
|
|
19
19
|
buildbot_es_modules_esbuild: false,
|
|
20
20
|
buildbot_zisi_trace_nft: false,
|
|
21
21
|
buildbot_zisi_esbuild_parser: false,
|
|
22
|
+
buildbot_scheduled_functions: false,
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
module.exports = { normalizeCliFeatureFlags, DEFAULT_FEATURE_FLAGS }
|
|
@@ -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 = ({
|