@netlify/zip-it-and-ship-it 13.2.0 → 14.1.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/README.md +0 -9
- package/dist/main.d.ts +1 -0
- package/dist/main.js +2 -1
- package/dist/utils/fs.js +1 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -95,19 +95,16 @@ matches one of the expressions, it inherits the configuration properties.
|
|
|
95
95
|
The following properties are accepted:
|
|
96
96
|
|
|
97
97
|
- `externalNodeModules`
|
|
98
|
-
|
|
99
98
|
- _Type_: `array<string>`
|
|
100
99
|
|
|
101
100
|
List of Node modules to include separately inside a node_modules directory.
|
|
102
101
|
|
|
103
102
|
- `ignoredNodeModules`
|
|
104
|
-
|
|
105
103
|
- _Type_: `array<string>`
|
|
106
104
|
|
|
107
105
|
List of Node modules to keep out of the bundle.
|
|
108
106
|
|
|
109
107
|
- `nodeBundler`
|
|
110
|
-
|
|
111
108
|
- _Type_: `string`
|
|
112
109
|
- _Default value_: `zisi`
|
|
113
110
|
|
|
@@ -116,7 +113,6 @@ The following properties are accepted:
|
|
|
116
113
|
When the value is `esbuild_zisi`, `esbuild` will be used with a fallback to `zisi` in case of an error.
|
|
117
114
|
|
|
118
115
|
- `nodeSourcemap`
|
|
119
|
-
|
|
120
116
|
- _Type_: `boolean`
|
|
121
117
|
- _Default value_: `false`
|
|
122
118
|
|
|
@@ -126,20 +122,17 @@ The following properties are accepted:
|
|
|
126
122
|
Available only when `nodeBundler` is set to `esbuild` or `esbuild_zisi`.
|
|
127
123
|
|
|
128
124
|
- `nodeVersion`
|
|
129
|
-
|
|
130
125
|
- _Type_: `string`\
|
|
131
126
|
- _Default value_: `18`
|
|
132
127
|
|
|
133
128
|
The version of Node.js to use as the compilation target for bundlers. This is also used to determine the runtime
|
|
134
129
|
reported in the manifest. Any valid and supported Node.js version is accepted. Examples:
|
|
135
|
-
|
|
136
130
|
- `14.x`
|
|
137
131
|
- `16.1.0`
|
|
138
132
|
- `v18`
|
|
139
133
|
- `nodejs18.x` (for backwards compatibility)
|
|
140
134
|
|
|
141
135
|
- `rustTargetDirectory`
|
|
142
|
-
|
|
143
136
|
- _Type_: `string`
|
|
144
137
|
- _Default value_: Path to a temporary directory
|
|
145
138
|
|
|
@@ -150,7 +143,6 @@ The following properties are accepted:
|
|
|
150
143
|
the target directory.
|
|
151
144
|
|
|
152
145
|
- `name`
|
|
153
|
-
|
|
154
146
|
- _Type_: `string`
|
|
155
147
|
- _Default value_: undefined
|
|
156
148
|
|
|
@@ -158,7 +150,6 @@ The following properties are accepted:
|
|
|
158
150
|
manifest for the specified function.
|
|
159
151
|
|
|
160
152
|
- `generator`
|
|
161
|
-
|
|
162
153
|
- _Type_: `string`
|
|
163
154
|
- _Default value_: undefined
|
|
164
155
|
|
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -64,7 +64,7 @@ export const listFunctionsFiles = async function (relativeSrcFolders, { basePath
|
|
|
64
64
|
const listedFunctionsFiles = await Promise.all(augmentedFunctions.map((func) => getListedFunctionFiles(func, { basePath, featureFlags })));
|
|
65
65
|
return listedFunctionsFiles.flat();
|
|
66
66
|
};
|
|
67
|
-
const getListedFunction = function ({ config, extension, staticAnalysisResult, mainFile, name, runtime, srcDir, }) {
|
|
67
|
+
const getListedFunction = function ({ config, extension, staticAnalysisResult, mainFile, name, runtime, srcDir, srcPath, }) {
|
|
68
68
|
return {
|
|
69
69
|
displayName: config.name,
|
|
70
70
|
extension,
|
|
@@ -79,6 +79,7 @@ const getListedFunction = function ({ config, extension, staticAnalysisResult, m
|
|
|
79
79
|
schedule: staticAnalysisResult?.config?.schedule ?? config.schedule,
|
|
80
80
|
inputModuleFormat: staticAnalysisResult?.inputModuleFormat,
|
|
81
81
|
srcDir,
|
|
82
|
+
srcPath,
|
|
82
83
|
};
|
|
83
84
|
};
|
|
84
85
|
const getListedFunctionFiles = async function (func, options) {
|
package/dist/utils/fs.js
CHANGED
|
@@ -40,10 +40,9 @@ export const safeUnlink = async (path) => {
|
|
|
40
40
|
};
|
|
41
41
|
// Takes a list of absolute paths and returns an array containing all the
|
|
42
42
|
// filenames within those directories, if at least one of the directories
|
|
43
|
-
// exists.
|
|
43
|
+
// exists.
|
|
44
44
|
export const listFunctionsDirectories = async function (srcFolders) {
|
|
45
45
|
const filenamesByDirectory = await Promise.allSettled(srcFolders.map((srcFolder) => listFunctionsDirectory(srcFolder)));
|
|
46
|
-
const errorMessages = [];
|
|
47
46
|
const validDirectories = filenamesByDirectory
|
|
48
47
|
.map((result) => {
|
|
49
48
|
if (result.status === 'rejected') {
|
|
@@ -58,10 +57,6 @@ export const listFunctionsDirectories = async function (srcFolders) {
|
|
|
58
57
|
return result.value;
|
|
59
58
|
})
|
|
60
59
|
.filter(nonNullable);
|
|
61
|
-
if (validDirectories.length === 0) {
|
|
62
|
-
throw new Error(`Functions folders do not exist: ${srcFolders.join(', ')}
|
|
63
|
-
${errorMessages.join('\n')}`);
|
|
64
|
-
}
|
|
65
60
|
return validDirectories.flat();
|
|
66
61
|
};
|
|
67
62
|
const listFunctionsDirectory = async function (srcPath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@babel/parser": "^7.22.5",
|
|
45
|
-
"@babel/types": "7.28.
|
|
45
|
+
"@babel/types": "7.28.1",
|
|
46
46
|
"@netlify/binary-info": "^1.0.0",
|
|
47
47
|
"@netlify/serverless-functions-api": "^2.1.3",
|
|
48
48
|
"@vercel/nft": "0.29.4",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=18.14.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "2a186393af7f577cc6bafa5d3962ea0833cd084c"
|
|
104
104
|
}
|