virtual-code-owners 8.0.0 → 8.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022-2023 Sander Verweij
3
+ Copyright (c) 2022-2024 Sander Verweij
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -81,8 +81,6 @@ ch/sales:
81
81
  - gregory-gregson-ch
82
82
  - jane-doe-ch
83
83
  - abraham-ableton-ch
84
- - boris-bubbleblower-ch
85
- - charlotte-charleston-ch
86
84
  - dagny-taggert-ch
87
85
  - karl-marx-ch
88
86
  ch/pre-sales:
@@ -95,11 +93,9 @@ ch/ux:
95
93
  - john-johnson-ch
96
94
  - joe-dalton-ch
97
95
  - koos-koets
98
- - charlotte-de-bourbon-ch
99
96
  ch/transversal:
100
97
  - mary-the-merry-ch
101
98
  - luke-the-lucky-ch
102
- - naomi-the-namegiver-ch
103
99
  - benjamin-franklin
104
100
  - koos-koets
105
101
  - abraham-lincoln
@@ -133,20 +129,20 @@ Running `npx virtual-code-owners` will combine these into a CODEOWNERS file like
133
129
 
134
130
  # admin & ci stuff => transversal
135
131
 
136
- .github/ @abraham-lincoln @benjamin-franklin @koos-koets @luke-the-lucky-ch @mary-the-merry-ch @naomi-the-namegiver-ch
132
+ .github/ @abraham-lincoln @benjamin-franklin @koos-koets @luke-the-lucky-ch @mary-the-merry-ch
137
133
 
138
134
  # generic stuff
139
135
 
140
- apps/framework/ @abraham-lincoln @benjamin-franklin @koos-koets @luke-the-lucky-ch @mary-the-merry-ch @naomi-the-namegiver-ch
141
- apps/ux-portal/ @abraham-lincoln @benjamin-franklin @charlotte-de-bourbon-ch @davy-davidson-ch @joe-dalton-ch @john-johnson-ch @koos-koets @luke-the-lucky-ch @mary-the-merry-ch @naomi-the-namegiver-ch
142
- libs/components/ @charlotte-de-bourbon-ch @davy-davidson-ch @joe-dalton-ch @john-johnson-ch @koos-koets
136
+ apps/framework/ @abraham-lincoln @benjamin-franklin @koos-koets @luke-the-lucky-ch @mary-the-merry-ch
137
+ apps/ux-portal/ @abraham-lincoln @benjamin-franklin @davy-davidson-ch @joe-dalton-ch @john-johnson-ch @koos-koets @luke-the-lucky-ch @mary-the-merry-ch
138
+ libs/components/ @davy-davidson-ch @joe-dalton-ch @john-johnson-ch @koos-koets
143
139
 
144
140
  # specific functionality
145
141
 
146
- libs/ubc-sales/ @abraham-ableton-ch @boris-bubbleblower-ch @charlotte-charleston-ch @dagny-taggert-ch @gregory-gregson-ch @jane-doe-ch @karl-marx-ch
142
+ libs/ubc-sales/ @abraham-ableton-ch @dagny-taggert-ch @gregory-gregson-ch @jane-doe-ch @karl-marx-ch
147
143
  libs/ubc-after-sales/ @daisy-duck @donald-duck @john-doe-ch @pete-peterson-ch @william-the-fourth-ch
148
144
  libs/ubc-pre-sales/ @averel-dalton-ch @jean-claude-ch @john-galt-ch @valerie-valerton-ch
149
- libs/ubc-refund/ @abraham-ableton-ch @boris-bubbleblower-ch @charlotte-charleston-ch @dagny-taggert-ch @daisy-duck @donald-duck @gregory-gregson-ch @jane-doe-ch @john-doe-ch @karl-marx-ch @pete-peterson-ch @william-the-fourth-ch
145
+ libs/ubc-refund/ @abraham-ableton-ch @dagny-taggert-ch @daisy-duck @donald-duck @gregory-gregson-ch @jane-doe-ch @john-doe-ch @karl-marx-ch @pete-peterson-ch @william-the-fourth-ch
150
146
  libs/ubc-baarden/ jan@example.com korneel@example.com pier@example.com tjorus@example.com
151
147
  ```
152
148
 
@@ -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) {
@@ -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.0";
1
+ export const VERSION = "8.0.2";
@@ -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.0",
4
- "description": "CODEOWNERS for teams that can't use GitHub teams",
3
+ "version": "8.0.2",
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.3.4"
30
+ "yaml": "2.4.1"
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
+ }
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "virtual teams schema for virtual-code-owners",
4
- "description": "a list of teams and their team members",
5
- "$id": "org.js.virtual-code-owners/7.0.0",
6
- "type": "object",
7
- "additionalProperties": {
8
- "type": "array",
9
- "items": {
10
- "type": "string",
11
- "description": "Username or e-mail address of a team member. (Don't prefix usernames with '@')",
12
- "pattern": "^[^@][^\\s]+$"
13
- }
14
- }
15
- }