@backstage/repo-tools 0.17.1 → 0.17.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @backstage/repo-tools
|
|
2
2
|
|
|
3
|
+
## 0.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 927c003: Replaced internal error utilities with shared ones from `@backstage/cli-common`.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/catalog-model@1.9.0
|
|
10
|
+
- @backstage/errors@1.3.1
|
|
11
|
+
- @backstage/backend-plugin-api@1.9.1
|
|
12
|
+
- @backstage/cli-node@0.3.2
|
|
13
|
+
- @backstage/cli-common@0.2.2
|
|
14
|
+
- @backstage/config-loader@1.10.11
|
|
15
|
+
|
|
16
|
+
## 0.17.2-next.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 927c003: Replaced internal error utilities with shared ones from `@backstage/cli-common`.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/errors@1.3.1-next.0
|
|
23
|
+
- @backstage/backend-plugin-api@1.9.1-next.0
|
|
24
|
+
- @backstage/catalog-model@1.8.1-next.0
|
|
25
|
+
- @backstage/cli-common@0.2.2-next.0
|
|
26
|
+
- @backstage/cli-node@0.3.2-next.0
|
|
27
|
+
- @backstage/config-loader@1.10.11-next.0
|
|
28
|
+
|
|
3
29
|
## 0.17.1
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -54,7 +54,7 @@ class PackageDocsCache {
|
|
|
54
54
|
}
|
|
55
55
|
map.set(pkg, parsed);
|
|
56
56
|
} catch (e) {
|
|
57
|
-
console.error(`Skipping
|
|
57
|
+
console.error(`Skipping unparsable cache file ${file}: ${e}`);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
return new PackageDocsCache(lockfile, map, baseDirectory);
|
|
@@ -64,8 +64,8 @@ async function generateDocJson(pkg) {
|
|
|
64
64
|
const packageJson = JSON.parse(
|
|
65
65
|
await promises.readFile(cliCommon.targetPaths.resolveRoot(pkg, "package.json"), "utf-8")
|
|
66
66
|
);
|
|
67
|
-
const exports
|
|
68
|
-
if (!exports
|
|
67
|
+
const exports = getExports(packageJson);
|
|
68
|
+
if (!exports.length || !exports.some((e) => e.startsWith("src") || e.startsWith("./src"))) {
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
await fs$1.mkdirp(cliCommon.targetPaths.resolveRoot(`dist-types`, pkg));
|
package/dist/lib/errors.cjs.js
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var cliCommon = require('@backstage/cli-common');
|
|
3
4
|
var chalk = require('chalk');
|
|
4
5
|
|
|
5
6
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
7
|
|
|
7
8
|
var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
|
|
8
9
|
|
|
9
|
-
class CustomError extends Error {
|
|
10
|
-
get name() {
|
|
11
|
-
return this.constructor.name;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
class ExitCodeError extends CustomError {
|
|
15
|
-
code;
|
|
16
|
-
constructor(code, command) {
|
|
17
|
-
super(
|
|
18
|
-
command ? `Command '${command}' exited with code ${code}` : `Child exited with code ${code}`
|
|
19
|
-
);
|
|
20
|
-
this.code = code;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
10
|
function exitWithError(error) {
|
|
24
|
-
if (error instanceof ExitCodeError) {
|
|
11
|
+
if (error instanceof cliCommon.ExitCodeError) {
|
|
25
12
|
process.stderr.write(`
|
|
26
13
|
${chalk__default.default.red(error.message)}
|
|
27
14
|
|
|
@@ -36,7 +23,5 @@ ${chalk__default.default.red(`${error}`)}
|
|
|
36
23
|
}
|
|
37
24
|
}
|
|
38
25
|
|
|
39
|
-
exports.CustomError = CustomError;
|
|
40
|
-
exports.ExitCodeError = ExitCodeError;
|
|
41
26
|
exports.exitWithError = exitWithError;
|
|
42
27
|
//# sourceMappingURL=errors.cjs.js.map
|
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.17.
|
|
3
|
+
"version": "0.17.2",
|
|
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": "^1.9.
|
|
47
|
-
"@backstage/catalog-model": "^1.
|
|
48
|
-
"@backstage/cli-common": "^0.2.
|
|
49
|
-
"@backstage/cli-node": "^0.3.
|
|
50
|
-
"@backstage/config-loader": "^1.10.
|
|
51
|
-
"@backstage/errors": "^1.3.
|
|
46
|
+
"@backstage/backend-plugin-api": "^1.9.1",
|
|
47
|
+
"@backstage/catalog-model": "^1.9.0",
|
|
48
|
+
"@backstage/cli-common": "^0.2.2",
|
|
49
|
+
"@backstage/cli-node": "^0.3.2",
|
|
50
|
+
"@backstage/config-loader": "^1.10.11",
|
|
51
|
+
"@backstage/errors": "^1.3.1",
|
|
52
52
|
"@electric-sql/pglite": "^0.3.0",
|
|
53
53
|
"@manypkg/get-packages": "^1.1.3",
|
|
54
54
|
"@microsoft/api-documenter": "^7.28.1",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"zod": "^3.25.76 || ^4.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@backstage/backend-test-utils": "^1.11.
|
|
91
|
-
"@backstage/cli": "^0.36.
|
|
90
|
+
"@backstage/backend-test-utils": "^1.11.3",
|
|
91
|
+
"@backstage/cli": "^0.36.2",
|
|
92
92
|
"@backstage/types": "^1.2.2",
|
|
93
93
|
"@types/is-glob": "^4.0.2",
|
|
94
94
|
"@types/node": "^22.13.14",
|