zarro 1.168.4 → 1.168.8
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.
|
@@ -20,12 +20,14 @@
|
|
|
20
20
|
const env = requireModule("env"), maskContainer = path.dirname(mask), searchContainers = path.isAbsolute(mask)
|
|
21
21
|
? [maskContainer]
|
|
22
22
|
: [maskContainer, `${env.resolve(env.PACK_TARGET_FOLDER)}/${maskContainer}`], files = await lsAll(searchContainers);
|
|
23
|
-
const maskHasFolders = mask.includes("/") || mask.includes("\\"), leaf = path.basename(mask), start = leaf.startsWith("*") ? ".*" : "^", end = leaf.endsWith("*") ? ".*" : "", regexed = mask.replace(/\*/g, ".*").replace(/\\/g, "\\/"), nupkgRe = /\.nupkg$/i, maskRe = new RegExp(`${start}${regexed}${end}`);
|
|
23
|
+
const maskHasFolders = mask.includes("/") || mask.includes("\\"), leaf = path.basename(mask), start = leaf.startsWith("*") ? ".*" : "^", end = leaf.endsWith("*") ? ".*" : "", regexed = mask.replace(/\*/g, ".*").replace(/\\/g, "\\/"), nupkgRe = /\.nupkg$/i, symbolsRe = /\.symbols\.nupkg$/i, maskRe = new RegExp(`${start}${regexed}${end}`);
|
|
24
24
|
return files.filter((f) => {
|
|
25
25
|
const toTest = maskHasFolders
|
|
26
26
|
? f
|
|
27
27
|
: path.basename(f);
|
|
28
|
-
return
|
|
28
|
+
return !symbolsRe.test(toTest) &&
|
|
29
|
+
nupkgRe.test(toTest) &&
|
|
30
|
+
maskRe.test(toTest);
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
33
|
async function lsAll(dirs) {
|
|
@@ -43,7 +45,8 @@
|
|
|
43
45
|
async function enumeratePackagesIn(packRoot) {
|
|
44
46
|
return await ls(packRoot, {
|
|
45
47
|
entities: FsEntities.files,
|
|
46
|
-
match: /\.nupkg
|
|
48
|
+
match: /\.nupkg$/i,
|
|
49
|
+
exclude: [/\.symbols\.nupkg$/i, /\.snupkg$/i],
|
|
47
50
|
recurse: false,
|
|
48
51
|
fullPaths: true
|
|
49
52
|
});
|
package/index.js
CHANGED
|
@@ -84,7 +84,7 @@ async function loadDefaults() {
|
|
|
84
84
|
// comment-only line or empty line
|
|
85
85
|
continue;
|
|
86
86
|
}
|
|
87
|
-
const sectionMatch = code.match(
|
|
87
|
+
const sectionMatch = code.match(/^\s*\[(?<section>[a-zA-Z0-9\s-_.]+)]\s*$/);
|
|
88
88
|
if (sectionMatch) {
|
|
89
89
|
currentSection = `${sectionMatch.groups.section}`.toLowerCase();
|
|
90
90
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zarro",
|
|
3
|
-
"version": "1.168.
|
|
3
|
+
"version": "1.168.8",
|
|
4
4
|
"description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
|
|
5
5
|
"bin": {
|
|
6
6
|
"zarro": "./index.js"
|
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
"@types/semver": "^7.5.0",
|
|
122
122
|
"@types/through2": "^2.0.38",
|
|
123
123
|
"@types/typescript": "^2.0.0",
|
|
124
|
+
"@types/uuid": "^9.0.8",
|
|
124
125
|
"@types/xml2js": "^0.4.8",
|
|
125
126
|
"@types/yargs": "^15.0.13",
|
|
126
127
|
"console-cls": "^1.2.2",
|
|
@@ -134,6 +135,7 @@
|
|
|
134
135
|
"redlock": "^5.0.0-beta.2",
|
|
135
136
|
"ts-jest": "^29.1.1",
|
|
136
137
|
"typescript": "^5.1.6",
|
|
138
|
+
"uuid": "^9.0.1",
|
|
137
139
|
"yargs": "^16.2.0"
|
|
138
140
|
}
|
|
139
141
|
}
|