@netlify/build 18.17.1 → 18.17.5
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.17.
|
|
3
|
+
"version": "18.17.5",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"main": "src/core/main.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"deployment",
|
|
34
34
|
"es6",
|
|
35
35
|
"serverless",
|
|
36
|
+
"ci",
|
|
37
|
+
"plugins",
|
|
36
38
|
"continuous-integration",
|
|
37
39
|
"continuous-delivery",
|
|
38
|
-
"ci",
|
|
39
40
|
"continuous-deployment",
|
|
40
|
-
"plugins",
|
|
41
41
|
"continuous-testing",
|
|
42
42
|
"netlify-plugin",
|
|
43
43
|
"netlify"
|
|
@@ -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.26.0",
|
|
65
65
|
"@sindresorhus/slugify": "^1.1.0",
|
|
66
66
|
"@ungap/from-entries": "^0.2.1",
|
|
67
67
|
"ansi-escapes": "^4.3.2",
|
package/src/core/config.js
CHANGED
|
@@ -147,7 +147,6 @@ const saveUpdatedConfig = async function ({
|
|
|
147
147
|
headersPath,
|
|
148
148
|
redirectsPath,
|
|
149
149
|
logs,
|
|
150
|
-
featureFlags,
|
|
151
150
|
context,
|
|
152
151
|
branch,
|
|
153
152
|
debug,
|
|
@@ -165,7 +164,6 @@ const saveUpdatedConfig = async function ({
|
|
|
165
164
|
context,
|
|
166
165
|
branch,
|
|
167
166
|
logs,
|
|
168
|
-
featureFlags,
|
|
169
167
|
})
|
|
170
168
|
|
|
171
169
|
await logConfigOnUpload({ logs, configPath, debug })
|
|
@@ -18,7 +18,6 @@ const DEFAULT_FEATURE_FLAGS = {
|
|
|
18
18
|
buildbot_build_go_functions: false,
|
|
19
19
|
buildbot_es_modules_esbuild: false,
|
|
20
20
|
buildbot_zisi_esbuild_parser: false,
|
|
21
|
-
netlify_config_toml_backslash: false,
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
module.exports = { normalizeCliFeatureFlags, DEFAULT_FEATURE_FLAGS }
|
|
@@ -18,7 +18,6 @@ const coreStep = async function ({
|
|
|
18
18
|
buildbotServerSocket,
|
|
19
19
|
events,
|
|
20
20
|
logs,
|
|
21
|
-
featureFlags,
|
|
22
21
|
context,
|
|
23
22
|
branch,
|
|
24
23
|
configMutations,
|
|
@@ -38,7 +37,6 @@ const coreStep = async function ({
|
|
|
38
37
|
headersPath,
|
|
39
38
|
redirectsPath,
|
|
40
39
|
logs,
|
|
41
|
-
featureFlags,
|
|
42
40
|
context,
|
|
43
41
|
branch,
|
|
44
42
|
debug,
|
|
@@ -7,13 +7,13 @@ type HttpStatusCode = number
|
|
|
7
7
|
|
|
8
8
|
interface Redirect {
|
|
9
9
|
from: string
|
|
10
|
-
to
|
|
10
|
+
to?: string
|
|
11
11
|
status?: HttpStatusCode
|
|
12
|
-
force
|
|
12
|
+
force?: boolean
|
|
13
13
|
signed?: string
|
|
14
|
-
query
|
|
15
|
-
headers
|
|
16
|
-
conditions
|
|
14
|
+
query?: Partial<Record<string, string>>
|
|
15
|
+
headers?: Partial<Record<string, string>>
|
|
16
|
+
conditions?: Record<'language' | 'role' | 'country', readonly string[]>
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
interface Header {
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { NetlifyEvent } from './netlify_event'
|
|
2
2
|
import { NetlifyPluginOptions } from './netlify_plugin_options'
|
|
3
|
+
import { JSONValue } from './utils/json_value'
|
|
3
4
|
|
|
4
|
-
export interface NetlifyPlugin {
|
|
5
|
+
export interface NetlifyPlugin<TInputs extends Record<string, JSONValue> = Partial<Record<string, JSONValue>>> {
|
|
5
6
|
/**
|
|
6
7
|
* Runs before the build command is executed.
|
|
7
8
|
*/
|
|
8
|
-
onPreBuild?: NetlifyEvent
|
|
9
|
+
onPreBuild?: NetlifyEvent<NetlifyPluginOptions<TInputs>>
|
|
9
10
|
/**
|
|
10
11
|
* runs directly after the build command is executed and before Functions? bundling and Edge Handlers bundling.
|
|
11
12
|
*/
|
|
12
|
-
onBuild?: NetlifyEvent
|
|
13
|
+
onBuild?: NetlifyEvent<NetlifyPluginOptions<TInputs>>
|
|
13
14
|
/**
|
|
14
15
|
* runs after the build command completes; after onBuild? tasks, Functions? bundling, and Edge Handlers bundling are executed; and before the deploy stage. Can be used to prevent a build from being deployed.
|
|
15
16
|
*/
|
|
16
|
-
onPostBuild?: NetlifyEvent
|
|
17
|
+
onPostBuild?: NetlifyEvent<NetlifyPluginOptions<TInputs>>
|
|
17
18
|
/**
|
|
18
19
|
* runs when an error occurs in the build or deploy stage, failing the build. Can’t be used to prevent a build from being deployed.
|
|
19
20
|
*/
|
|
20
|
-
onError?: NetlifyEvent<NetlifyPluginOptions & { error: Error }>
|
|
21
|
+
onError?: NetlifyEvent<NetlifyPluginOptions<TInputs> & { error: Error }>
|
|
21
22
|
/**
|
|
22
23
|
* runs when the deploy succeeds. Can’t be used to prevent a build from being deployed.
|
|
23
24
|
*/
|
|
24
|
-
onSuccess?: NetlifyEvent
|
|
25
|
+
onSuccess?: NetlifyEvent<NetlifyPluginOptions<TInputs>>
|
|
25
26
|
/**
|
|
26
27
|
* runs after completion of the deploy stage, regardless of build error or success; is useful for resources cleanup. Can’t be used to prevent a build from being deployed.
|
|
27
28
|
*/
|
|
28
|
-
onEnd?: NetlifyEvent<NetlifyPluginOptions & { error?: Error }>
|
|
29
|
+
onEnd?: NetlifyEvent<NetlifyPluginOptions<TInputs> & { error?: Error }>
|
|
29
30
|
}
|