virtual-code-owners 8.0.0 → 8.0.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.
- package/LICENSE +1 -1
- package/dist/labeler-yml/generate.js +1 -3
- package/dist/team-map/read.js +2 -7
- package/dist/version.js +1 -1
- package/dist/virtual-code-owners/read.js +1 -4
- package/package.json +7 -4
package/LICENSE
CHANGED
|
@@ -19,9 +19,7 @@ export default function generateLabelerYml(
|
|
|
19
19
|
const lPatternsForTeam = getPatternsForTeam(pCodeOwners, lTeamName)
|
|
20
20
|
.map(
|
|
21
21
|
(pPattern) =>
|
|
22
|
-
` - any-glob-to-any-file: ${transformForYamlAndMinimatch(
|
|
23
|
-
pPattern,
|
|
24
|
-
)}${EOL}`,
|
|
22
|
+
` - any-glob-to-any-file: ${transformForYamlAndMinimatch(pPattern)}${EOL}`,
|
|
25
23
|
)
|
|
26
24
|
.join("");
|
|
27
25
|
if (lPatternsForTeam) {
|
package/dist/team-map/read.js
CHANGED
|
@@ -18,10 +18,7 @@ function assertTeamMapValid(pTeamMap, pVirtualTeamsFileName) {
|
|
|
18
18
|
});
|
|
19
19
|
if (!ajv.validate(virtualTeamsSchema, pTeamMap)) {
|
|
20
20
|
throw new Error(
|
|
21
|
-
`This is not a valid virtual-teams.yml:${EOL}${formatAjvErrors(
|
|
22
|
-
ajv.errors,
|
|
23
|
-
pVirtualTeamsFileName,
|
|
24
|
-
)}.\n`,
|
|
21
|
+
`This is not a valid virtual-teams.yml:${EOL}${formatAjvErrors(ajv.errors, pVirtualTeamsFileName)}.\n`,
|
|
25
22
|
);
|
|
26
23
|
}
|
|
27
24
|
}
|
|
@@ -31,7 +28,5 @@ function formatAjvErrors(pAjvErrors, pVirtualTeamsFileName) {
|
|
|
31
28
|
.join(EOL);
|
|
32
29
|
}
|
|
33
30
|
function formatAjvError(pAjvError, pVirtualTeamsFileName) {
|
|
34
|
-
return `${pVirtualTeamsFileName}: ${
|
|
35
|
-
pAjvError.instancePath
|
|
36
|
-
} - ${JSON.stringify(pAjvError.data)} ${pAjvError.message}`;
|
|
31
|
+
return `${pVirtualTeamsFileName}: ${pAjvError.instancePath} - ${JSON.stringify(pAjvError.data)} ${pAjvError.message}`;
|
|
37
32
|
}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "8.0.
|
|
1
|
+
export const VERSION = "8.0.1";
|
|
@@ -16,10 +16,7 @@ export default function readVirtualCodeOwners(
|
|
|
16
16
|
const lAnomalies = getAnomalies(lVirtualCodeOwners);
|
|
17
17
|
if (lAnomalies.length > 0) {
|
|
18
18
|
throw new Error(
|
|
19
|
-
`This is not a valid virtual code-owners file:${EOL}${reportAnomalies(
|
|
20
|
-
pVirtualCodeOwnersFileName,
|
|
21
|
-
lAnomalies,
|
|
22
|
-
)}`,
|
|
19
|
+
`This is not a valid virtual code-owners file:${EOL}${reportAnomalies(pVirtualCodeOwnersFileName, lAnomalies)}`,
|
|
23
20
|
);
|
|
24
21
|
}
|
|
25
22
|
return lVirtualCodeOwners;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtual-code-owners",
|
|
3
|
-
"version": "8.0.
|
|
4
|
-
"description": "CODEOWNERS for teams that can't use GitHub teams",
|
|
3
|
+
"version": "8.0.1",
|
|
4
|
+
"description": "CODEOWNERS with teams for teams that can't use GitHub teams",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"virtual-code-owners": "dist/run-cli.js"
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"ajv": "8.12.0",
|
|
30
|
-
"yaml": "2.
|
|
30
|
+
"yaml": "2.4.0"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": "^18.11.0||>=20.0.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"test": "echo for test, build and static analysis scripts: see the github repository"
|
|
34
37
|
}
|
|
35
|
-
}
|
|
38
|
+
}
|