@netlify/zip-it-and-ship-it 9.28.0 → 9.28.1
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,5 +1,6 @@
|
|
|
1
1
|
import { normalize, resolve } from 'path';
|
|
2
|
-
import
|
|
2
|
+
import fastGlob from 'fast-glob';
|
|
3
|
+
import { minimatch } from '../../../utils/matching.js';
|
|
3
4
|
// Returns the subset of `paths` that don't match any of the glob expressions
|
|
4
5
|
// from `exclude`.
|
|
5
6
|
export const filterExcludedPaths = (paths, excludePattern = []) => {
|
|
@@ -31,11 +32,14 @@ export const getPathsOfIncludedFiles = async (includedFiles, basePath) => {
|
|
|
31
32
|
excludePatterns: acc.excludePatterns,
|
|
32
33
|
};
|
|
33
34
|
}, { include: [], excludePatterns: [] });
|
|
34
|
-
const pathGroups = await
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
const pathGroups = await fastGlob(include, {
|
|
36
|
+
absolute: true,
|
|
37
|
+
cwd: basePath,
|
|
38
|
+
dot: true,
|
|
39
|
+
ignore: excludePatterns,
|
|
40
|
+
followSymbolicLinks: true,
|
|
41
|
+
throwErrorOnBrokenSymbolicLink: true,
|
|
42
|
+
});
|
|
43
|
+
return { excludePatterns, paths: pathGroups.map(normalize) };
|
|
40
44
|
};
|
|
41
45
|
//# sourceMappingURL=included_files.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "9.28.
|
|
3
|
+
"version": "9.28.1",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"es-module-lexer": "^1.0.0",
|
|
66
66
|
"esbuild": "0.19.6",
|
|
67
67
|
"execa": "^6.0.0",
|
|
68
|
+
"fast-glob": "^3.3.2",
|
|
68
69
|
"filter-obj": "^5.0.0",
|
|
69
70
|
"find-up": "^6.0.0",
|
|
70
71
|
"glob": "^8.0.3",
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
"@types/is-ci": "3.0.4",
|
|
95
96
|
"@types/node": "14.18.63",
|
|
96
97
|
"@types/normalize-path": "3.0.2",
|
|
98
|
+
"@types/picomatch": "^2.3.3",
|
|
97
99
|
"@types/resolve": "1.20.6",
|
|
98
100
|
"@types/semver": "7.5.6",
|
|
99
101
|
"@types/tmp": "0.2.6",
|