@backstage/cli 0.34.5-next.0 → 0.34.5

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,30 @@
1
1
  # @backstage/cli
2
2
 
3
+ ## 0.34.5
4
+
5
+ ### Patch Changes
6
+
7
+ - fc7cbfc: The templates executed with the `yarn new` command now supports templating filenames.
8
+ - da19cb5: Fix inconsistent behavior in the `new` command for the `@internal` scope: it now consistently defaults to the `backstage-plugin-` infix whether the `--scope` option is not set or it's set to `internal`.
9
+ - fc7cbfc: Added a template for the `yarn new` command to create an catalog entity provider. To add this template to an explicit list in the root `package.json`, use `@backstage/cli/templates/catalog-provider-module`.
10
+ - b2bef92: Convert all enums to erasable-syntax compliant patterns
11
+ - 279279c: Fixes an issue where using the `backstage-cli new --scope` command with a scope that already includes the `@` symbol (e.g., `@backstage-community`) would result in a double `@@` prefix in the generated package name, causing invalid `package.json` files.
12
+ - 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility.
13
+ - Updated dependencies
14
+ - @backstage/integration@1.18.2
15
+ - @backstage/eslint-plugin@0.2.0
16
+ - @backstage/config-loader@1.10.6
17
+ - @backstage/config@1.3.6
18
+ - @backstage/cli-node@0.2.15
19
+ - @backstage/catalog-model@1.7.6
20
+
21
+ ## 0.34.5-next.1
22
+
23
+ ### Patch Changes
24
+
25
+ - da19cb5: Fix inconsistent behavior in the `new` command for the `@internal` scope: it now consistently defaults to the `backstage-plugin-` infix whether the `--scope` option is not set or it's set to `internal`.
26
+ - b2bef92: Convert all enums to erasable-syntax compliant patterns
27
+
3
28
  ## 0.34.5-next.0
4
29
 
5
30
  ### Patch Changes
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var Output = /* @__PURE__ */ ((Output2) => {
4
- Output2[Output2["esm"] = 0] = "esm";
5
- Output2[Output2["cjs"] = 1] = "cjs";
6
- Output2[Output2["types"] = 2] = "types";
7
- return Output2;
8
- })(Output || {});
3
+ const Output = {
4
+ esm: 0,
5
+ cjs: 1,
6
+ types: 2
7
+ };
9
8
 
10
9
  exports.Output = Output;
11
10
  //# sourceMappingURL=types.cjs.js.map
@@ -17,7 +17,8 @@ var _new = async (opts) => {
17
17
  let pluginInfix = void 0;
18
18
  let packagePrefix = void 0;
19
19
  if (scope) {
20
- packagePrefix = scope.includes("/") ? `@${scope}` : `@${scope}/`;
20
+ const normalizedScope = scope.startsWith("@") ? scope : `@${scope}`;
21
+ packagePrefix = normalizedScope.includes("/") ? normalizedScope : `${normalizedScope}/`;
21
22
  pluginInfix = scope.includes("backstage") ? "plugin-" : "backstage-plugin-";
22
23
  }
23
24
  if (isPrivate === false || // set to false with --no-private flag
@@ -40,6 +40,12 @@ const pkgJsonWithNewConfigSchema = z.z.object({
40
40
  }).optional()
41
41
  }).optional()
42
42
  });
43
+ function computePackageNamePluginInfix(packageNamePrefix, namePluginInfix) {
44
+ const packageNamePluginInfix = namePluginInfix ?? (packageNamePrefix.includes("backstage") ? defaults.packageNamePluginInfix : "backstage-plugin-");
45
+ return {
46
+ packageNamePluginInfix
47
+ };
48
+ }
43
49
  async function loadPortableTemplateConfig(options = {}) {
44
50
  const { overrides = {} } = options;
45
51
  const pkgPath = options.packagePath ?? paths.paths.resolveTargetRoot("package.json");
@@ -77,6 +83,11 @@ async function loadPortableTemplateConfig(options = {}) {
77
83
  }
78
84
  templateNameConflicts.set(pointer.name, rawPointer);
79
85
  }
86
+ const packageNamePrefix = overrides.packageNamePrefix ?? config?.globals?.namePrefix ?? defaults.packageNamePrefix;
87
+ const { packageNamePluginInfix } = computePackageNamePluginInfix(
88
+ packageNamePrefix,
89
+ overrides.packageNamePluginInfix ?? config?.globals?.namePluginInfix
90
+ );
80
91
  return {
81
92
  isUsingDefaultTemplates: !config?.templates,
82
93
  templatePointers: templatePointerEntries.map(({ pointer }) => pointer),
@@ -84,8 +95,8 @@ async function loadPortableTemplateConfig(options = {}) {
84
95
  version: overrides.version ?? config?.globals?.version ?? defaults.version,
85
96
  private: overrides.private ?? config?.globals?.private ?? defaults.private,
86
97
  publishRegistry: overrides.publishRegistry ?? config?.globals?.publishRegistry ?? defaults.publishRegistry,
87
- packageNamePrefix: overrides.packageNamePrefix ?? config?.globals?.namePrefix ?? defaults.packageNamePrefix,
88
- packageNamePluginInfix: overrides.packageNamePluginInfix ?? config?.globals?.namePluginInfix ?? defaults.packageNamePluginInfix
98
+ packageNamePrefix,
99
+ packageNamePluginInfix
89
100
  };
90
101
  }
91
102
  function resolveLocalTemplatePath(pointer, basePath) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.13.1-next.0";
3
+ var version = "0.13.1";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.4.5-next.0";
3
+ var version = "1.5.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.10.0-next.0";
3
+ var version = "1.10.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.12.1-next.0";
3
+ var version = "1.12.1";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.34.5-next.0";
3
+ var version = "0.34.5";
4
4
  var dependencies = {
5
5
  "@backstage/catalog-model": "workspace:^",
6
6
  "@backstage/cli-common": "workspace:^",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.3.6-next.0";
3
+ var version = "1.3.6";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.19.2-next.0";
3
+ var version = "1.19.2";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.18.3-next.0";
3
+ var version = "0.18.3";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.11.2-next.0";
3
+ var version = "1.12.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.1.17-next.0";
3
+ var version = "1.1.17";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.3.3-next.0";
3
+ var version = "0.3.3";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.12.2-next.0";
3
+ var version = "0.13.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.4.1-next.0";
3
+ var version = "0.4.1";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.7.13-next.0";
3
+ var version = "1.7.13";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.25.6-next.0";
3
+ var version = "0.25.6";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.2.14-next.0";
3
+ var version = "0.2.14";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.19.2-next.0";
3
+ var version = "1.20.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.12.1-next.0";
3
+ var version = "0.12.1";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.3.5-next.0";
3
+ var version = "0.3.5";
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/cli",
3
- "version": "0.34.5-next.0",
3
+ "version": "0.34.5",
4
4
  "description": "CLI for developing Backstage plugins and apps",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -47,16 +47,16 @@
47
47
  ]
48
48
  },
49
49
  "dependencies": {
50
- "@backstage/catalog-model": "1.7.6-next.0",
51
- "@backstage/cli-common": "0.1.15",
52
- "@backstage/cli-node": "0.2.15-next.0",
53
- "@backstage/config": "1.3.6-next.0",
54
- "@backstage/config-loader": "1.10.6-next.0",
55
- "@backstage/errors": "1.2.7",
56
- "@backstage/eslint-plugin": "0.2.0-next.0",
57
- "@backstage/integration": "1.18.2-next.0",
58
- "@backstage/release-manifests": "0.0.13",
59
- "@backstage/types": "1.2.2",
50
+ "@backstage/catalog-model": "^1.7.6",
51
+ "@backstage/cli-common": "^0.1.15",
52
+ "@backstage/cli-node": "^0.2.15",
53
+ "@backstage/config": "^1.3.6",
54
+ "@backstage/config-loader": "^1.10.6",
55
+ "@backstage/errors": "^1.2.7",
56
+ "@backstage/eslint-plugin": "^0.2.0",
57
+ "@backstage/integration": "^1.18.2",
58
+ "@backstage/release-manifests": "^0.0.13",
59
+ "@backstage/types": "^1.2.2",
60
60
  "@manypkg/get-packages": "^1.1.3",
61
61
  "@module-federation/enhanced": "^0.9.0",
62
62
  "@octokit/request": "^8.0.0",
@@ -151,22 +151,22 @@
151
151
  "zod-validation-error": "^3.4.0"
152
152
  },
153
153
  "devDependencies": {
154
- "@backstage/backend-plugin-api": "1.4.5-next.0",
155
- "@backstage/backend-test-utils": "1.10.0-next.0",
156
- "@backstage/catalog-client": "1.12.1-next.0",
157
- "@backstage/config": "1.3.6-next.0",
158
- "@backstage/core-app-api": "1.19.2-next.0",
159
- "@backstage/core-components": "0.18.3-next.0",
160
- "@backstage/core-plugin-api": "1.11.2-next.0",
161
- "@backstage/dev-utils": "1.1.17-next.0",
162
- "@backstage/errors": "1.2.7",
163
- "@backstage/plugin-auth-backend": "0.25.6-next.0",
164
- "@backstage/plugin-auth-backend-module-guest-provider": "0.2.14-next.0",
165
- "@backstage/plugin-catalog-node": "1.19.2-next.0",
166
- "@backstage/plugin-scaffolder-node": "0.12.1-next.0",
167
- "@backstage/plugin-scaffolder-node-test-utils": "0.3.5-next.0",
168
- "@backstage/test-utils": "1.7.13-next.0",
169
- "@backstage/theme": "0.7.0",
154
+ "@backstage/backend-plugin-api": "^1.5.0",
155
+ "@backstage/backend-test-utils": "^1.10.0",
156
+ "@backstage/catalog-client": "^1.12.1",
157
+ "@backstage/config": "^1.3.6",
158
+ "@backstage/core-app-api": "^1.19.2",
159
+ "@backstage/core-components": "^0.18.3",
160
+ "@backstage/core-plugin-api": "^1.12.0",
161
+ "@backstage/dev-utils": "^1.1.17",
162
+ "@backstage/errors": "^1.2.7",
163
+ "@backstage/plugin-auth-backend": "^0.25.6",
164
+ "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.14",
165
+ "@backstage/plugin-catalog-node": "^1.20.0",
166
+ "@backstage/plugin-scaffolder-node": "^0.12.1",
167
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.3.5",
168
+ "@backstage/test-utils": "^1.7.13",
169
+ "@backstage/theme": "^0.7.0",
170
170
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
171
171
  "@types/cross-spawn": "^6.0.2",
172
172
  "@types/ejs": "^3.1.3",