@backstage/repo-tools 0.9.1-next.0 → 0.9.1-next.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,27 @@
1
1
  # @backstage/repo-tools
2
2
 
3
+ ## 0.9.1-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/cli-node@0.2.6-next.1
9
+ - @backstage/backend-plugin-api@0.6.19-next.2
10
+ - @backstage/config-loader@1.8.0
11
+ - @backstage/catalog-model@1.5.0
12
+ - @backstage/cli-common@0.1.13
13
+ - @backstage/errors@1.2.4
14
+
15
+ ## 0.9.1-next.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 8721a02: Add `--client-additional-properties` option to `openapi generate` command
20
+ - Updated dependencies
21
+ - @backstage/backend-plugin-api@0.6.19-next.1
22
+ - @backstage/cli-node@0.2.6-next.0
23
+ - @backstage/config-loader@1.8.0
24
+
3
25
  ## 0.9.1-next.0
4
26
 
5
27
  ### Patch Changes
@@ -21,12 +21,13 @@ var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
21
21
  var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
22
22
  var YAML__default = /*#__PURE__*/_interopDefaultCompat(YAML);
23
23
 
24
- async function generate$1(outputDirectory) {
24
+ async function generate$1(outputDirectory, clientAdditionalProperties) {
25
25
  const resolvedOpenapiPath = await helpers.getPathToCurrentOpenApiSpec();
26
26
  const resolvedOutputDirectory = paths.paths.resolveTargetRoot(
27
27
  outputDirectory,
28
28
  constants.OUTPUT_PATH
29
29
  );
30
+ const additionalProperties = clientAdditionalProperties ? `--additional-properties=${clientAdditionalProperties}` : "";
30
31
  fs.mkdirpSync(resolvedOutputDirectory);
31
32
  await fs__default.default.mkdirp(resolvedOutputDirectory);
32
33
  await fs__default.default.writeFile(
@@ -50,7 +51,8 @@ async function generate$1(outputDirectory) {
50
51
  "templates/typescript-backstage.yaml"
51
52
  ),
52
53
  "--generator-key",
53
- "v3.0"
54
+ "v3.0",
55
+ additionalProperties
54
56
  ],
55
57
  {
56
58
  maxBuffer: Number.MAX_VALUE,
@@ -73,9 +75,9 @@ async function generate$1(outputDirectory) {
73
75
  force: true
74
76
  });
75
77
  }
76
- async function command$2(outputPackage) {
78
+ async function command$2(outputPackage, clientAdditionalProperties) {
77
79
  try {
78
- await generate$1(outputPackage);
80
+ await generate$1(outputPackage, clientAdditionalProperties);
79
81
  console.log(
80
82
  chalk__default.default.green(`Generated client in ${outputPackage}/${constants.OUTPUT_PATH}`)
81
83
  );
@@ -132,7 +134,7 @@ async function command(opts) {
132
134
  process.exit(1);
133
135
  }
134
136
  if (opts.clientPackage) {
135
- await command$2(opts.clientPackage);
137
+ await command$2(opts.clientPackage, opts.clientAdditionalProperties);
136
138
  }
137
139
  if (opts.server) {
138
140
  await command$1();
@@ -140,4 +142,4 @@ async function command(opts) {
140
142
  }
141
143
 
142
144
  exports.command = command;
143
- //# sourceMappingURL=index-DZM_RDbm.cjs.js.map
145
+ //# sourceMappingURL=index-C5SnL4Ah.cjs.js.map
package/dist/index.cjs.js CHANGED
@@ -56,9 +56,11 @@ function registerPackageCommand(program) {
56
56
  "Top-level path to where the client should be generated, ie packages/catalog-client."
57
57
  ).option("--server").description(
58
58
  "Command to generate a client and/or a server stub from an OpenAPI spec."
59
+ ).option("--client-additional-properties [properties]").description(
60
+ "Additional properties that can be passed to @openapitools/openapi-generator-cli"
59
61
  ).action(
60
62
  lazy(
61
- () => Promise.resolve().then(function () { return require('./cjs/index-DZM_RDbm.cjs.js'); }).then((m) => m.command)
63
+ () => Promise.resolve().then(function () { return require('./cjs/index-C5SnL4Ah.cjs.js'); }).then((m) => m.command)
62
64
  )
63
65
  );
64
66
  openApiCommand.command("fuzz").description(
@@ -174,7 +176,7 @@ function lazy(getActionFunc) {
174
176
  };
175
177
  }
176
178
 
177
- var version = "0.9.1-next.0";
179
+ var version = "0.9.1-next.2";
178
180
 
179
181
  const main = (argv) => {
180
182
  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.9.1-next.0",
4
+ "version": "0.9.1-next.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -43,10 +43,10 @@
43
43
  "dependencies": {
44
44
  "@apidevtools/swagger-parser": "^10.1.0",
45
45
  "@apisyouwonthate/style-guide": "^1.4.0",
46
- "@backstage/backend-plugin-api": "^0.6.19-next.0",
46
+ "@backstage/backend-plugin-api": "^0.6.19-next.2",
47
47
  "@backstage/catalog-model": "^1.5.0",
48
48
  "@backstage/cli-common": "^0.1.13",
49
- "@backstage/cli-node": "^0.2.6-next.0",
49
+ "@backstage/cli-node": "^0.2.6-next.1",
50
50
  "@backstage/config-loader": "^1.8.0",
51
51
  "@backstage/errors": "^1.2.4",
52
52
  "@manypkg/get-packages": "^1.1.3",
@@ -76,8 +76,8 @@
76
76
  "yaml-diff-patch": "^2.0.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@backstage/backend-test-utils": "^0.3.9-next.0",
80
- "@backstage/cli": "^0.26.6-next.0",
79
+ "@backstage/backend-test-utils": "^0.4.0-next.2",
80
+ "@backstage/cli": "^0.26.7-next.2",
81
81
  "@backstage/types": "^1.1.1",
82
82
  "@types/is-glob": "^4.0.2",
83
83
  "@types/node": "^18.17.8",