virtual-code-owners 2.2.3 → 3.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.
|
@@ -22,12 +22,14 @@ function shouldAppearInResult(pLine) {
|
|
|
22
22
|
function convertLine(pTeamMap) {
|
|
23
23
|
return (pUntreatedLine) => {
|
|
24
24
|
const lTrimmedLine = pUntreatedLine.trim();
|
|
25
|
-
const lSplitLine = lTrimmedLine.match(/^(?<filesPattern>[^\s]
|
|
25
|
+
const lSplitLine = lTrimmedLine.match(/^(?<filesPattern>[^\s]+)(?<spaces>\s+)(?<userNames>.*)$/);
|
|
26
26
|
if (lTrimmedLine.startsWith("#") || !lSplitLine?.groups) {
|
|
27
27
|
return pUntreatedLine;
|
|
28
28
|
}
|
|
29
29
|
const lUserNames = replaceTeamNames(lSplitLine.groups.userNames, pTeamMap);
|
|
30
|
-
return lSplitLine.groups.filesPattern +
|
|
30
|
+
return (lSplitLine.groups.filesPattern +
|
|
31
|
+
lSplitLine.groups.spaces +
|
|
32
|
+
uniqAndSortUserNames(lUserNames));
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
function replaceTeamNames(pUserNames, pTeamMap) {
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "
|
|
1
|
+
export const VERSION = "3.0.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtual-code-owners",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Merges a VIRTUAL-CODEOWNERS.txt and a virtual-teams.yml into CODEOWNERS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"LICENSE"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "rm -rf dist && ts-node
|
|
23
|
+
"build": "rm -rf dist && node --no-warnings --loader ts-node/esm tools/get-version.ts > src/version.ts && tsc",
|
|
24
24
|
"check": "npm run format && npm run build && npm run depcruise -- --no-progress && npm test",
|
|
25
25
|
"depcruise": "depcruise src tools",
|
|
26
26
|
"depcruise:graph": "depcruise src --include-only '^(src)' --output-type dot | dot -T svg | depcruise-wrap-stream-in-html > dependency-graph.html",
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/js-yaml": "4.0.5",
|
|
56
56
|
"@types/mocha": "10.0.1",
|
|
57
|
-
"@types/node": "
|
|
57
|
+
"@types/node": "20.0.0",
|
|
58
58
|
"c8": "7.13.0",
|
|
59
|
-
"dependency-cruiser": "^13.0.0-beta-
|
|
59
|
+
"dependency-cruiser": "^13.0.0-beta-7",
|
|
60
60
|
"husky": "8.0.3",
|
|
61
|
-
"lint-staged": "13.2.
|
|
61
|
+
"lint-staged": "13.2.2",
|
|
62
62
|
"mocha": "10.2.0",
|
|
63
|
-
"prettier": "2.8.
|
|
63
|
+
"prettier": "2.8.8",
|
|
64
64
|
"ts-node": "10.9.1",
|
|
65
65
|
"typescript": "5.0.4",
|
|
66
66
|
"upem": "7.3.2",
|
|
67
|
-
"watskeburt": "0.
|
|
67
|
+
"watskeburt": "0.11.1"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"commander": "10.0.1",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
|
-
"node": "^14
|
|
83
|
+
"node": "^16.14||>=18"
|
|
84
84
|
}
|
|
85
85
|
}
|