virtual-code-owners 4.1.0 → 4.1.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.
|
@@ -40,9 +40,7 @@ function replaceTeamNames(pUserNames, pTeamMap) {
|
|
|
40
40
|
return lReturnValue;
|
|
41
41
|
}
|
|
42
42
|
function stringifyTeamMembers(pTeamMap, pTeamName) {
|
|
43
|
-
return pTeamMap[pTeamName]
|
|
44
|
-
.map((pUserName) => userNameToCodeOwner(pUserName))
|
|
45
|
-
.join(" ");
|
|
43
|
+
return pTeamMap[pTeamName].map(userNameToCodeOwner).join(" ");
|
|
46
44
|
}
|
|
47
45
|
function userNameToCodeOwner(pUserName) {
|
|
48
46
|
const lEmailIshUsernameRE = /^.+@.+$/;
|
package/dist/read-and-convert.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
|
-
import
|
|
2
|
+
import { parse } from "yaml";
|
|
3
3
|
import { convert } from "./convert-to-codeowners.js";
|
|
4
4
|
export function readAndConvert(pVirtualCodeOwnersFileName, pVirtualTeamsFileName) {
|
|
5
5
|
const lVirtualCodeOwnersAsAString = readFileSync(pVirtualCodeOwnersFileName, {
|
|
@@ -8,6 +8,6 @@ export function readAndConvert(pVirtualCodeOwnersFileName, pVirtualTeamsFileName
|
|
|
8
8
|
const lVirtualTeamsAsAString = readFileSync(pVirtualTeamsFileName, {
|
|
9
9
|
encoding: "utf-8",
|
|
10
10
|
});
|
|
11
|
-
const lTeamMap =
|
|
11
|
+
const lTeamMap = parse(lVirtualTeamsAsAString);
|
|
12
12
|
return convert(lVirtualCodeOwnersAsAString, lTeamMap);
|
|
13
13
|
}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "4.1.
|
|
1
|
+
export const VERSION = "4.1.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtual-code-owners",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Merges a VIRTUAL-CODEOWNERS.txt and a virtual-teams.yml into CODEOWNERS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -52,22 +52,21 @@
|
|
|
52
52
|
"url": "https://github.com/sverweij/virtual-code-owners/issues"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/js-yaml": "4.0.5",
|
|
56
55
|
"@types/mocha": "10.0.1",
|
|
57
56
|
"@types/node": "20.2.5",
|
|
58
57
|
"c8": "7.14.0",
|
|
59
|
-
"dependency-cruiser": "13.0.
|
|
58
|
+
"dependency-cruiser": "13.0.3",
|
|
60
59
|
"husky": "8.0.3",
|
|
61
60
|
"lint-staged": "13.2.2",
|
|
62
61
|
"mocha": "10.2.0",
|
|
63
62
|
"prettier": "2.8.8",
|
|
64
63
|
"ts-node": "10.9.1",
|
|
65
|
-
"typescript": "5.
|
|
64
|
+
"typescript": "5.1.3",
|
|
66
65
|
"upem": "7.3.2",
|
|
67
66
|
"watskeburt": "0.11.3"
|
|
68
67
|
},
|
|
69
68
|
"dependencies": {
|
|
70
|
-
"
|
|
69
|
+
"yaml": "2.3.1"
|
|
71
70
|
},
|
|
72
71
|
"engines": {
|
|
73
72
|
"node": "^16.19.0||^18.11.0||>=20.0.0"
|