@netlify/build 18.11.2 → 18.13.1
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.13.1",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"main": "src/core/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@netlify/plugin-edge-handlers": "^1.11.22",
|
|
60
60
|
"@netlify/plugins-list": "^3.6.0",
|
|
61
61
|
"@netlify/run-utils": "^2.0.0",
|
|
62
|
-
"@netlify/zip-it-and-ship-it": "^4.
|
|
62
|
+
"@netlify/zip-it-and-ship-it": "^4.23.0",
|
|
63
63
|
"@sindresorhus/slugify": "^1.1.0",
|
|
64
64
|
"@ungap/from-entries": "^0.2.1",
|
|
65
65
|
"ansi-escapes": "^4.3.2",
|
|
@@ -16,6 +16,7 @@ const getFeatureFlag = function (name) {
|
|
|
16
16
|
// Default values for feature flags
|
|
17
17
|
const DEFAULT_FEATURE_FLAGS = {
|
|
18
18
|
buildbot_es_modules_esbuild: false,
|
|
19
|
+
buildbot_zisi_esbuild_parser: false,
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
module.exports = { normalizeCliFeatureFlags, DEFAULT_FEATURE_FLAGS }
|
|
@@ -7,13 +7,13 @@ const { addLazyProp } = require('./lazy')
|
|
|
7
7
|
const { show } = require('./status')
|
|
8
8
|
|
|
9
9
|
// Retrieve the `utils` argument.
|
|
10
|
-
const getUtils = function ({ event, constants: { FUNCTIONS_SRC, CACHE_DIR }, runState }) {
|
|
10
|
+
const getUtils = function ({ event, constants: { FUNCTIONS_SRC, INTERNAL_FUNCTIONS_SRC, CACHE_DIR }, runState }) {
|
|
11
11
|
const build = getBuildUtils(event)
|
|
12
12
|
const utils = { build }
|
|
13
13
|
addLazyProp(utils, 'git', getGitUtils)
|
|
14
14
|
addLazyProp(utils, 'cache', getCacheUtils.bind(null, CACHE_DIR))
|
|
15
15
|
addLazyProp(utils, 'run', getRunUtils)
|
|
16
|
-
addLazyProp(utils, 'functions', getFunctionsUtils.bind(null, FUNCTIONS_SRC))
|
|
16
|
+
addLazyProp(utils, 'functions', getFunctionsUtils.bind(null, FUNCTIONS_SRC, INTERNAL_FUNCTIONS_SRC))
|
|
17
17
|
addLazyProp(utils, 'status', getStatusUtils.bind(null, runState))
|
|
18
18
|
return utils
|
|
19
19
|
}
|
|
@@ -46,12 +46,13 @@ const getRunUtils = function () {
|
|
|
46
46
|
return require('@netlify/run-utils')
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
const getFunctionsUtils = function (FUNCTIONS_SRC) {
|
|
49
|
+
const getFunctionsUtils = function (FUNCTIONS_SRC, INTERNAL_FUNCTIONS_SRC) {
|
|
50
|
+
const functionsDirectories = [INTERNAL_FUNCTIONS_SRC, FUNCTIONS_SRC].filter(Boolean)
|
|
50
51
|
// eslint-disable-next-line node/global-require
|
|
51
52
|
const functionsUtils = require('@netlify/functions-utils')
|
|
52
|
-
const add = (src) => functionsUtils.add(src,
|
|
53
|
-
const list = functionsUtils.list.bind(null,
|
|
54
|
-
const listAll = functionsUtils.listAll.bind(null,
|
|
53
|
+
const add = (src) => functionsUtils.add(src, INTERNAL_FUNCTIONS_SRC, { fail: failBuild })
|
|
54
|
+
const list = functionsUtils.list.bind(null, functionsDirectories, { fail: failBuild })
|
|
55
|
+
const listAll = functionsUtils.listAll.bind(null, functionsDirectories, { fail: failBuild })
|
|
55
56
|
return { add, list, listAll }
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -53,6 +53,7 @@ const getZisiParameters = ({ buildDir, featureFlags, functionsConfig, functionsD
|
|
|
53
53
|
])
|
|
54
54
|
const zisiFeatureFlags = {
|
|
55
55
|
defaultEsModulesToEsbuild: featureFlags.buildbot_es_modules_esbuild,
|
|
56
|
+
parseWithEsbuild: featureFlags.buildbot_zisi_esbuild_parser,
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
return { basePath: buildDir, config, manifest, featureFlags: zisiFeatureFlags }
|