@backstage/repo-tools 0.17.1 → 0.17.2-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,18 @@
1
1
  # @backstage/repo-tools
2
2
 
3
+ ## 0.17.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 927c003: Replaced internal error utilities with shared ones from `@backstage/cli-common`.
8
+ - Updated dependencies
9
+ - @backstage/errors@1.3.1-next.0
10
+ - @backstage/backend-plugin-api@1.9.1-next.0
11
+ - @backstage/catalog-model@1.8.1-next.0
12
+ - @backstage/cli-common@0.2.2-next.0
13
+ - @backstage/cli-node@0.3.2-next.0
14
+ - @backstage/config-loader@1.10.11-next.0
15
+
3
16
  ## 0.17.1
4
17
 
5
18
  ### Patch Changes
@@ -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
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.17.1";
3
+ var version = "0.17.2-next.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/repo-tools",
3
- "version": "0.17.1",
3
+ "version": "0.17.2-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": "^1.9.0",
47
- "@backstage/catalog-model": "^1.8.0",
48
- "@backstage/cli-common": "^0.2.1",
49
- "@backstage/cli-node": "^0.3.1",
50
- "@backstage/config-loader": "^1.10.10",
51
- "@backstage/errors": "^1.3.0",
46
+ "@backstage/backend-plugin-api": "1.9.1-next.0",
47
+ "@backstage/catalog-model": "1.8.1-next.0",
48
+ "@backstage/cli-common": "0.2.2-next.0",
49
+ "@backstage/cli-node": "0.3.2-next.0",
50
+ "@backstage/config-loader": "1.10.11-next.0",
51
+ "@backstage/errors": "1.3.1-next.0",
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,9 +87,9 @@
87
87
  "zod": "^3.25.76 || ^4.0.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@backstage/backend-test-utils": "^1.11.2",
91
- "@backstage/cli": "^0.36.1",
92
- "@backstage/types": "^1.2.2",
90
+ "@backstage/backend-test-utils": "1.11.3-next.0",
91
+ "@backstage/cli": "0.36.2-next.0",
92
+ "@backstage/types": "1.2.2",
93
93
  "@types/is-glob": "^4.0.2",
94
94
  "@types/node": "^22.13.14",
95
95
  "@types/prettier": "^2.0.0",