@backstage/repo-tools 0.16.1-next.0 → 0.16.1-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,15 @@
1
1
  # @backstage/repo-tools
2
2
 
3
+ ## 0.16.1-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 688f070: Updated to use new utilities from `@backstage/cli-common`.
8
+ - d1e38a7: Properly create workspace in OS temporary directory for `generate-patch` command
9
+ - Updated dependencies
10
+ - @backstage/cli-node@0.2.16-next.1
11
+ - @backstage/cli-common@0.1.16-next.1
12
+
3
13
  ## 0.16.1-next.0
4
14
 
5
15
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var child_process = require('child_process');
4
+ var cliCommon = require('@backstage/cli-common');
5
5
  var paths = require('../../../lib/paths.cjs.js');
6
6
 
7
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -10,22 +10,27 @@ var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
10
10
 
11
11
  async function generateTypeDeclarations(tsconfigFilePath) {
12
12
  await fs__default.default.remove(paths.paths.resolveTargetRoot("dist-types"));
13
- const { status } = child_process.spawnSync(
14
- "yarn",
15
- [
16
- "tsc",
17
- ["--project", tsconfigFilePath],
18
- ["--skipLibCheck", "false"],
19
- ["--incremental", "false"]
20
- ].flat(),
21
- {
22
- stdio: "inherit",
23
- shell: true,
24
- cwd: paths.paths.targetRoot
13
+ try {
14
+ await cliCommon.run(
15
+ [
16
+ "yarn",
17
+ "tsc",
18
+ "--project",
19
+ tsconfigFilePath,
20
+ "--skipLibCheck",
21
+ "false",
22
+ "--incremental",
23
+ "false"
24
+ ],
25
+ {
26
+ cwd: paths.paths.targetRoot
27
+ }
28
+ ).waitForExit();
29
+ } catch (error) {
30
+ if (error instanceof cliCommon.ExitCodeError) {
31
+ process.exit(error.code);
25
32
  }
26
- );
27
- if (status !== 0) {
28
- process.exit(status || void 0);
33
+ throw error;
29
34
  }
30
35
  }
31
36
 
@@ -56,7 +56,9 @@ var generatePatch = async (packageArg, opts) => {
56
56
  if (!sourcePkg) {
57
57
  throw new Error(`Could not find package ${packageArg} in source repo`);
58
58
  }
59
- const tmpDir = await fs__default.default.mkdtemp(os__default.default.tmpdir());
59
+ const tmpDir = await fs__default.default.mkdtemp(
60
+ path.join(os__default.default.tmpdir(), "backstage-repo-tools-generate-patch-")
61
+ );
60
62
  const ctx = {
61
63
  sourceRepo,
62
64
  targetRepo,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.16.1-next.0";
3
+ var version = "0.16.1-next.1";
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.16.1-next.0",
3
+ "version": "0.16.1-next.1",
4
4
  "description": "CLI for Backstage repo tooling ",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -45,8 +45,8 @@
45
45
  "@apisyouwonthate/style-guide": "^1.4.0",
46
46
  "@backstage/backend-plugin-api": "1.5.1-next.0",
47
47
  "@backstage/catalog-model": "1.7.6",
48
- "@backstage/cli-common": "0.1.16-next.0",
49
- "@backstage/cli-node": "0.2.16-next.0",
48
+ "@backstage/cli-common": "0.1.16-next.1",
49
+ "@backstage/cli-node": "0.2.16-next.1",
50
50
  "@backstage/config-loader": "1.10.7-next.0",
51
51
  "@backstage/errors": "1.2.7",
52
52
  "@electric-sql/pglite": "^0.3.0",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@backstage/backend-test-utils": "1.10.1-next.0",
90
- "@backstage/cli": "0.34.6-next.0",
90
+ "@backstage/cli": "0.34.6-next.1",
91
91
  "@backstage/types": "1.2.2",
92
92
  "@types/is-glob": "^4.0.2",
93
93
  "@types/node": "^20.16.0",