@backstage/repo-tools 0.6.3-next.0 → 0.7.0-next.1

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,20 @@
1
1
  # @backstage/repo-tools
2
2
 
3
+ ## 0.7.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - 8bfcc50: Fix knip-report command to send 1 exit status in case of fail
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @backstage/backend-common@0.21.4-next.1
13
+ - @backstage/catalog-model@1.4.5-next.0
14
+ - @backstage/cli-common@0.1.13
15
+ - @backstage/cli-node@0.2.4-next.0
16
+ - @backstage/errors@1.2.4-next.0
17
+
3
18
  ## 0.6.3-next.0
4
19
 
5
20
  ### Patch Changes
@@ -150,6 +150,7 @@ async function runKnipReports({
150
150
  const fullDir = paths.paths.resolveTargetRoot(packageDir);
151
151
  cleanKnipConfig({ packageDir: fullDir });
152
152
  });
153
+ throw e;
153
154
  }
154
155
  }
155
156
 
@@ -174,12 +175,16 @@ const buildKnipReports = async (paths$1 = [], opts) => {
174
175
  }
175
176
  if (selectedPackageDirs.length > 0) {
176
177
  console.log("# Generating package knip reports");
177
- await runKnipReports({
178
- packageDirs: selectedPackageDirs,
179
- isLocalBuild: !isCiBuild
180
- });
178
+ try {
179
+ await runKnipReports({
180
+ packageDirs: selectedPackageDirs,
181
+ isLocalBuild: !isCiBuild
182
+ });
183
+ } catch (e) {
184
+ process.exit(1);
185
+ }
181
186
  }
182
187
  };
183
188
 
184
189
  exports.buildKnipReports = buildKnipReports;
185
- //# sourceMappingURL=knip-reports-7309d5ae.cjs.js.map
190
+ //# sourceMappingURL=knip-reports-f68aec50.cjs.js.map
package/dist/index.cjs.js CHANGED
@@ -132,7 +132,7 @@ function registerCommands(program) {
132
132
  );
133
133
  program.command("knip-reports [paths...]").option("--ci", "CI run checks that there is no changes on knip reports").description("Generate a knip report for selected packages").action(
134
134
  lazy(
135
- () => Promise.resolve().then(function () { return require('./cjs/knip-reports-7309d5ae.cjs.js'); }).then((m) => m.buildKnipReports)
135
+ () => Promise.resolve().then(function () { return require('./cjs/knip-reports-f68aec50.cjs.js'); }).then((m) => m.buildKnipReports)
136
136
  )
137
137
  );
138
138
  registerPackageCommand(program);
@@ -151,7 +151,7 @@ function lazy(getActionFunc) {
151
151
  };
152
152
  }
153
153
 
154
- var version = "0.6.3-next.0";
154
+ var version = "0.7.0-next.1";
155
155
 
156
156
  const main = (argv) => {
157
157
  commander.program.name("backstage-repo-tools").version(version);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/repo-tools",
3
3
  "description": "CLI for Backstage repo tooling ",
4
- "version": "0.6.3-next.0",
4
+ "version": "0.7.0-next.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@apidevtools/swagger-parser": "^10.1.0",
34
34
  "@apisyouwonthate/style-guide": "^1.4.0",
35
- "@backstage/backend-common": "^0.21.3-next.0",
35
+ "@backstage/backend-common": "^0.21.4-next.1",
36
36
  "@backstage/catalog-model": "^1.4.5-next.0",
37
37
  "@backstage/cli-common": "^0.1.13",
38
38
  "@backstage/cli-node": "^0.2.4-next.0",
@@ -63,8 +63,8 @@
63
63
  "yaml-diff-patch": "^2.0.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@backstage/backend-test-utils": "^0.3.3-next.0",
67
- "@backstage/cli": "^0.25.3-next.0",
66
+ "@backstage/backend-test-utils": "^0.3.4-next.1",
67
+ "@backstage/cli": "^0.25.3-next.1",
68
68
  "@backstage/types": "^1.1.1",
69
69
  "@types/is-glob": "^4.0.2",
70
70
  "@types/node": "^18.17.8",