@backstage/repo-tools 0.9.7-next.2 → 0.10.0-next.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @backstage/repo-tools
|
|
2
2
|
|
|
3
|
+
## 0.10.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 30c2be9: Update @microsoft/api-extractor and use their api report resolution.
|
|
8
|
+
Change api report format from `api-report.md` to `report.api.md`
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @backstage/backend-plugin-api@1.0.1-next.0
|
|
14
|
+
- @backstage/catalog-model@1.7.0
|
|
15
|
+
- @backstage/cli-common@0.1.14
|
|
16
|
+
- @backstage/cli-node@0.2.8
|
|
17
|
+
- @backstage/config-loader@1.9.1
|
|
18
|
+
- @backstage/errors@1.2.4
|
|
19
|
+
|
|
20
|
+
## 0.9.7
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 5c4aa2f: Updated dependency `@useoptic/openapi-utilities` to `^0.55.0`.
|
|
25
|
+
- 1a8837e: Avoid generating API reports for packages with `backstage.inline` set.
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/backend-plugin-api@1.0.0
|
|
28
|
+
- @backstage/catalog-model@1.7.0
|
|
29
|
+
- @backstage/cli-node@0.2.8
|
|
30
|
+
- @backstage/config-loader@1.9.1
|
|
31
|
+
- @backstage/cli-common@0.1.14
|
|
32
|
+
- @backstage/errors@1.2.4
|
|
33
|
+
|
|
3
34
|
## 0.9.7-next.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -245,14 +245,17 @@ async function runApiExtraction({
|
|
|
245
245
|
);
|
|
246
246
|
const remainingReportFiles = new Set(
|
|
247
247
|
fs__default.default.readdirSync(projectFolder).filter(
|
|
248
|
-
(filename) =>
|
|
248
|
+
(filename) => (
|
|
249
|
+
// https://regex101.com/r/QDZIV0/2
|
|
250
|
+
filename !== "knip-report.md" && // this has to temporarily match all old api report formats
|
|
251
|
+
filename.match(/^.*?(api-)?report(-[^.-]+)?(.*?)\.md$/)
|
|
252
|
+
)
|
|
249
253
|
)
|
|
250
254
|
);
|
|
251
255
|
for (const packageEntryPoint of packageEntryPoints) {
|
|
252
256
|
const suffix = packageEntryPoint.name === "index" ? "" : `-${packageEntryPoint.name}`;
|
|
253
|
-
const reportFileName = `
|
|
257
|
+
const reportFileName = `report${suffix}`;
|
|
254
258
|
const reportPath = path.resolve(projectFolder, reportFileName);
|
|
255
|
-
remainingReportFiles.delete(reportFileName);
|
|
256
259
|
const warningCountBefore = await countApiReportWarnings(reportPath);
|
|
257
260
|
const extractorConfig = apiExtractor.ExtractorConfig.prepare({
|
|
258
261
|
configObject: {
|
|
@@ -319,6 +322,9 @@ async function runApiExtraction({
|
|
|
319
322
|
tsdocConfigFile: await getTsDocConfig(),
|
|
320
323
|
ignoreMissingEntryPoint: true
|
|
321
324
|
});
|
|
325
|
+
for (const reportConfig of extractorConfig.reportConfigs) {
|
|
326
|
+
remainingReportFiles.delete(reportConfig.fileName);
|
|
327
|
+
}
|
|
322
328
|
extractorConfig.packageFolder = packageFolder;
|
|
323
329
|
if (!compilerState) {
|
|
324
330
|
compilerState = apiExtractor.CompilerState.create(extractorConfig, {
|
|
@@ -342,7 +348,7 @@ async function runApiExtraction({
|
|
|
342
348
|
)) {
|
|
343
349
|
shouldLogInstructions = true;
|
|
344
350
|
const match = message.text.match(
|
|
345
|
-
/Please copy the file "(.*)" to "api-report\.md"/
|
|
351
|
+
/Please copy the file "(.*)" to "api-report\.api\.md"/
|
|
346
352
|
);
|
|
347
353
|
if (match) {
|
|
348
354
|
conflictingFile = match[1];
|
|
@@ -1122,4 +1128,4 @@ function parseArrayOption(value) {
|
|
|
1122
1128
|
}
|
|
1123
1129
|
|
|
1124
1130
|
exports.buildApiReports = buildApiReports;
|
|
1125
|
-
//# sourceMappingURL=api-reports-
|
|
1131
|
+
//# sourceMappingURL=api-reports-B3Gt_Fej.cjs.js.map
|
package/dist/index.cjs.js
CHANGED
|
@@ -148,7 +148,7 @@ function registerCommands(program) {
|
|
|
148
148
|
"Turn on release tag validation for the public, beta, and alpha APIs"
|
|
149
149
|
).description("Generate an API report for selected packages").action(
|
|
150
150
|
lazy(
|
|
151
|
-
() => Promise.resolve().then(function () { return require('./cjs/api-reports-
|
|
151
|
+
() => Promise.resolve().then(function () { return require('./cjs/api-reports-B3Gt_Fej.cjs.js'); }).then((m) => m.buildApiReports)
|
|
152
152
|
)
|
|
153
153
|
);
|
|
154
154
|
program.command("type-deps").description("Find inconsistencies in types of all packages and plugins").action(lazy(() => Promise.resolve().then(function () { return require('./cjs/type-deps-DgJcEpV_.cjs.js'); }).then((m) => m.default)));
|
|
@@ -187,7 +187,7 @@ function lazy(getActionFunc) {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
var version = "0.
|
|
190
|
+
var version = "0.10.0-next.0";
|
|
191
191
|
|
|
192
192
|
const main = (argv) => {
|
|
193
193
|
commander.program.name("backstage-repo-tools").version(version);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/repo-tools",
|
|
3
|
+
"version": "0.10.0-next.0",
|
|
3
4
|
"description": "CLI for Backstage repo tooling ",
|
|
4
|
-
"version": "0.9.7-next.2",
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
5
|
"backstage": {
|
|
9
6
|
"role": "cli"
|
|
10
7
|
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"backstage"
|
|
13
13
|
],
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
45
45
|
"@apisyouwonthate/style-guide": "^1.4.0",
|
|
46
|
-
"@backstage/backend-plugin-api": "^1.0.
|
|
47
|
-
"@backstage/catalog-model": "^1.
|
|
46
|
+
"@backstage/backend-plugin-api": "^1.0.1-next.0",
|
|
47
|
+
"@backstage/catalog-model": "^1.7.0",
|
|
48
48
|
"@backstage/cli-common": "^0.1.14",
|
|
49
|
-
"@backstage/cli-node": "^0.2.8
|
|
50
|
-
"@backstage/config-loader": "^1.9.1
|
|
49
|
+
"@backstage/cli-node": "^0.2.8",
|
|
50
|
+
"@backstage/config-loader": "^1.9.1",
|
|
51
51
|
"@backstage/errors": "^1.2.4",
|
|
52
52
|
"@manypkg/get-packages": "^1.1.3",
|
|
53
|
-
"@microsoft/api-documenter": "^7.
|
|
54
|
-
"@microsoft/api-extractor": "^7.
|
|
53
|
+
"@microsoft/api-documenter": "^7.25.7",
|
|
54
|
+
"@microsoft/api-extractor": "^7.47.2",
|
|
55
55
|
"@openapitools/openapi-generator-cli": "^2.7.0",
|
|
56
56
|
"@stoplight/spectral-core": "^1.18.0",
|
|
57
57
|
"@stoplight/spectral-formatters": "^1.1.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"yaml-diff-patch": "^2.0.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@backstage/backend-test-utils": "^1.0.
|
|
81
|
-
"@backstage/cli": "^0.
|
|
80
|
+
"@backstage/backend-test-utils": "^1.0.1-next.0",
|
|
81
|
+
"@backstage/cli": "^0.28.0-next.0",
|
|
82
82
|
"@backstage/types": "^1.1.1",
|
|
83
83
|
"@types/is-glob": "^4.0.2",
|
|
84
84
|
"@types/node": "^18.17.8",
|