netlify-cli 16.6.2 → 16.7.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "16.6.2",
3
+ "version": "16.7.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "16.6.2",
9
+ "version": "16.7.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "16.6.2",
4
+ "version": "16.7.0",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {
@@ -107,7 +107,7 @@ const hashFns = async (
107
107
  tmpDir,
108
108
  })
109
109
  const fileObjs = functionZips.map(
110
- ({ displayName, generator, invocationMode, path: functionPath, runtime, runtimeVersion }) => ({
110
+ ({ buildData, displayName, generator, invocationMode, path: functionPath, runtime, runtimeVersion }) => ({
111
111
  filepath: functionPath,
112
112
  root: tmpDir,
113
113
  relname: path.relative(tmpDir, functionPath),
@@ -120,14 +120,20 @@ const hashFns = async (
120
120
  displayName,
121
121
  generator,
122
122
  invocationMode,
123
+ buildData,
123
124
  }),
124
125
  )
125
126
  const fnConfig = functionZips
126
- .filter((func) => Boolean(func.displayName || func.generator || func.routes))
127
+ .filter((func) => Boolean(func.displayName || func.generator || func.routes || func.buildData))
127
128
  .reduce(
128
129
  (funcs, curr) => ({
129
130
  ...funcs,
130
- [curr.name]: { display_name: curr.displayName, generator: curr.generator, routes: curr.routes },
131
+ [curr.name]: {
132
+ display_name: curr.displayName,
133
+ generator: curr.generator,
134
+ routes: curr.routes,
135
+ build_data: curr.buildData,
136
+ },
131
137
  }),
132
138
  {},
133
139
  )