@backstage/cli 0.34.5-next.0 → 0.34.5-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,12 @@
1
1
  # @backstage/cli
2
2
 
3
+ ## 0.34.5-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 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`.
8
+ - b2bef92: Convert all enums to erasable-syntax compliant patterns
9
+
3
10
  ## 0.34.5-next.0
4
11
 
5
12
  ### 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
@@ -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-next.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-next.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.10.0-next.0";
3
+ var version = "1.10.0-next.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-next.1";
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.19.2-next.0";
3
+ var version = "1.19.2-next.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.18.3-next.0";
3
+ var version = "0.18.3-next.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.11.2-next.0";
3
+ var version = "1.11.2-next.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.1.17-next.0";
3
+ var version = "1.1.17-next.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.12.2-next.0";
3
+ var version = "0.12.2-next.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.25.6-next.0";
3
+ var version = "0.25.6-next.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.2.14-next.0";
3
+ var version = "0.2.14-next.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.19.2-next.0";
3
+ var version = "1.20.0-next.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.12.1-next.0";
3
+ var version = "0.12.1-next.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-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/cli",
3
- "version": "0.34.5-next.0",
3
+ "version": "0.34.5-next.1",
4
4
  "description": "CLI for developing Backstage plugins and apps",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -151,20 +151,20 @@
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",
154
+ "@backstage/backend-plugin-api": "1.5.0-next.1",
155
+ "@backstage/backend-test-utils": "1.10.0-next.1",
156
156
  "@backstage/catalog-client": "1.12.1-next.0",
157
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",
158
+ "@backstage/core-app-api": "1.19.2-next.1",
159
+ "@backstage/core-components": "0.18.3-next.1",
160
+ "@backstage/core-plugin-api": "1.11.2-next.1",
161
+ "@backstage/dev-utils": "1.1.17-next.1",
162
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",
163
+ "@backstage/plugin-auth-backend": "0.25.6-next.1",
164
+ "@backstage/plugin-auth-backend-module-guest-provider": "0.2.14-next.1",
165
+ "@backstage/plugin-catalog-node": "1.20.0-next.1",
166
+ "@backstage/plugin-scaffolder-node": "0.12.1-next.1",
167
+ "@backstage/plugin-scaffolder-node-test-utils": "0.3.5-next.1",
168
168
  "@backstage/test-utils": "1.7.13-next.0",
169
169
  "@backstage/theme": "0.7.0",
170
170
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",