@backstage/repo-tools 0.11.1 → 0.12.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,15 +1,19 @@
|
|
|
1
1
|
# @backstage/repo-tools
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.12.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c1eccd6: Fix invalid path and malformed flags bugs in api-reports.ts
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
|
-
-
|
|
11
|
+
- 5f04976: Fixed a bug that caused missing code in published packages.
|
|
8
12
|
- Updated dependencies
|
|
9
|
-
- @backstage/backend-plugin-api@1.0.
|
|
13
|
+
- @backstage/backend-plugin-api@1.0.3-next.0
|
|
14
|
+
- @backstage/cli-node@0.2.11-next.0
|
|
10
15
|
- @backstage/catalog-model@1.7.1
|
|
11
16
|
- @backstage/cli-common@0.1.15
|
|
12
|
-
- @backstage/cli-node@0.2.10
|
|
13
17
|
- @backstage/config-loader@1.9.2
|
|
14
18
|
- @backstage/errors@1.2.5
|
|
15
19
|
|
|
@@ -71,7 +71,7 @@ const buildApiReports = async (paths$1 = [], opts) => {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
function parseArrayOption(value) {
|
|
74
|
-
return value ? value.split(",").map((s) => s.trim()) : [];
|
|
74
|
+
return value ? value.split(",").map((s) => s.trim()).filter(Boolean) : [];
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
exports.buildApiReports = buildApiReports;
|
package/dist/lib/paths.cjs.js
CHANGED
|
@@ -9,6 +9,20 @@ const paths = cliCommon.findPaths(__dirname);
|
|
|
9
9
|
async function resolvePackagePaths(options = {}) {
|
|
10
10
|
const { paths: providedPaths, include, exclude } = options;
|
|
11
11
|
let packages = await cliNode.PackageGraph.listTargetPackages();
|
|
12
|
+
if (providedPaths && providedPaths.length > 0) {
|
|
13
|
+
const invalidPaths = [];
|
|
14
|
+
for (const path$1 of providedPaths) {
|
|
15
|
+
const matches = packages.some(
|
|
16
|
+
({ dir }) => new minimatch.Minimatch(path$1).match(path.relative(paths.targetRoot, dir)) || isChildPath(dir, path$1)
|
|
17
|
+
);
|
|
18
|
+
if (!matches) {
|
|
19
|
+
invalidPaths.push(path$1);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (invalidPaths.length > 0) {
|
|
23
|
+
throw new Error(`Invalid paths provided: ${invalidPaths.join(", ")}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
12
26
|
if (providedPaths && providedPaths.length > 0) {
|
|
13
27
|
packages = packages.filter(
|
|
14
28
|
({ dir }) => providedPaths.some(
|
package/dist/package.json.cjs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/repo-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-next.0",
|
|
4
4
|
"description": "CLI for Backstage repo tooling ",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
45
45
|
"@apisyouwonthate/style-guide": "^1.4.0",
|
|
46
|
-
"@backstage/backend-plugin-api": "
|
|
47
|
-
"@backstage/catalog-model": "
|
|
48
|
-
"@backstage/cli-common": "
|
|
49
|
-
"@backstage/cli-node": "
|
|
50
|
-
"@backstage/config-loader": "
|
|
51
|
-
"@backstage/errors": "
|
|
46
|
+
"@backstage/backend-plugin-api": "1.0.3-next.0",
|
|
47
|
+
"@backstage/catalog-model": "1.7.1",
|
|
48
|
+
"@backstage/cli-common": "0.1.15",
|
|
49
|
+
"@backstage/cli-node": "0.2.11-next.0",
|
|
50
|
+
"@backstage/config-loader": "1.9.2",
|
|
51
|
+
"@backstage/errors": "1.2.5",
|
|
52
52
|
"@manypkg/get-packages": "^1.1.3",
|
|
53
53
|
"@microsoft/api-documenter": "^7.25.7",
|
|
54
54
|
"@microsoft/api-extractor": "^7.47.2",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"yaml-diff-patch": "^2.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@backstage/backend-test-utils": "
|
|
83
|
-
"@backstage/cli": "
|
|
84
|
-
"@backstage/types": "
|
|
82
|
+
"@backstage/backend-test-utils": "1.2.0-next.0",
|
|
83
|
+
"@backstage/cli": "0.29.3-next.0",
|
|
84
|
+
"@backstage/types": "1.2.0",
|
|
85
85
|
"@types/is-glob": "^4.0.2",
|
|
86
86
|
"@types/node": "^20.16.0",
|
|
87
87
|
"@types/prettier": "^2.0.0"
|