@netlify/zip-it-and-ship-it 13.2.0 → 14.0.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/dist/utils/fs.js +1 -6
- package/package.json +2 -2
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.0.0",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=18.14.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "243d65788aca4867c78403ac15c267f76feb6c00"
|
|
104
104
|
}
|