@netlify/build 18.21.4 → 18.21.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
|
@@ -3,36 +3,34 @@ type GlobPattern = string
|
|
|
3
3
|
/* eslint-disable camelcase -- some properties are named in snake case in this API */
|
|
4
4
|
type FunctionsObject = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* a list of additional paths to include in the function bundle. Although our build system includes statically referenced files (like `require("./some-file.js")`) by default, `included_files` lets you specify additional files or directories and reference them dynamically in function code. You can use `*` to match any character or prefix an entry with `!` to exclude files. Paths are relative to the [base directory](https://docs.netlify.com/configure-builds/get-started/#definitions-1).
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
included_files?: string[]
|
|
9
9
|
} & (
|
|
10
10
|
| {
|
|
11
11
|
/**
|
|
12
12
|
* the function bundling method used in [`@netlify/zip-it-and-ship-it`](https://github.com/netlify/zip-it-and-ship-it).
|
|
13
13
|
*/
|
|
14
|
-
node_bundler
|
|
14
|
+
node_bundler?: 'zisi' | 'nft'
|
|
15
15
|
}
|
|
16
16
|
| {
|
|
17
17
|
/**
|
|
18
18
|
* the function bundling method used in [`@netlify/zip-it-and-ship-it`](https://github.com/netlify/zip-it-and-ship-it).
|
|
19
19
|
*/
|
|
20
|
-
node_bundler
|
|
20
|
+
node_bundler?: 'esbuild'
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* a list of Node.js modules that are copied to the bundled artifact without adjusting their source or references during the bundling process.
|
|
24
24
|
* This property helps handle dependencies that can’t be inlined, such as modules with native add-ons.
|
|
25
25
|
*/
|
|
26
|
-
external_node_modules
|
|
26
|
+
external_node_modules?: string[]
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
* a list of additional paths to include in the function bundle. Although our build system includes statically referenced files (like `require("./some-file.js")`) by default, `included_files` lets you specify additional files or directories and reference them dynamically in function code. You can use `*` to match any character or prefix an entry with `!` to exclude files. Paths are relative to the [base directory](https://docs.netlify.com/configure-builds/get-started/#definitions-1).
|
|
30
|
-
*/
|
|
31
|
-
included_files: string[]
|
|
32
|
-
|
|
33
|
-
ignored_node_modules: string[]
|
|
28
|
+
ignored_node_modules?: string[]
|
|
34
29
|
}
|
|
35
30
|
)
|
|
36
31
|
/* eslint-enable camelcase */
|
|
37
32
|
|
|
38
|
-
export type Functions =
|
|
33
|
+
export type Functions = {
|
|
34
|
+
'*': FunctionsObject
|
|
35
|
+
[pattern: GlobPattern]: FunctionsObject
|
|
36
|
+
}
|