@backstage/cli 0.34.4-next.3 → 0.34.4

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,57 @@
1
1
  # @backstage/cli
2
2
 
3
+ ## 0.34.4
4
+
5
+ ### Patch Changes
6
+
7
+ - f2cf564: Removed the script transform cache from the default Jest configuration. The script cache provided a moderate performance boost, but it is incompatible with Jest 30.
8
+ - 33faad2: Allow using custom manifest location in the yarn plugin and version bump.
9
+
10
+ The Backstage yarn plugin and version bump allows two new environment variables to configure custom manifest location:
11
+
12
+ - `BACKSTAGE_VERSIONS_BASE_URL`: The base URL for fetching the Backstage version
13
+ manifest. Defaults to `https://versions.backstage.io/v1/releases/VERSION/manifest.json`.
14
+ Useful for running the plugin in environment without direct access to the internet,
15
+ for example by using a mirror of the versions API or a proxy.
16
+ Note that the environment variable is just the host name, and the path is appended by
17
+ the plugin. If you are using the yarn plugin, bump version command will also try
18
+ to fetch the new version of the yarn plugin from the same base URL (defaults to
19
+ `https://versions.backstage.io/v1/releases/RELEASE/yarn-plugin`)
20
+ - `BACKSTAGE_MANIFEST_FILE`: Path to a local manifest file. If set, the plugin
21
+ will not attempt to fetch the manifest from the network. Useful for running
22
+ the plugin in environment without internet access and without mirror of the
23
+ versions API.
24
+
25
+ - 6ebc1ea: Fixed module federation config by only setting `import: false` on shared libraries for remote.
26
+ - ab96bb7: Added a new `--entrypoint` option to the `package start` command, which allows you to specify a custom entry directory/file for development applications. This is particularly useful when maintaining separate dev apps for different versions of your plugin (e.g., stable and alpha).
27
+
28
+ **Example usage:**
29
+
30
+ Consider the following plugin dev folder structure:
31
+
32
+ ```
33
+ dev/
34
+ index.tsx
35
+ alpha/
36
+ index.ts
37
+ ```
38
+
39
+ - The default `yarn package start` command uses the `dev/` folder as the entry point and executes `dev/index.tsx` file;
40
+ - Running `yarn package start --entrypoint dev/alpha` will instead use `dev/alpha/` as the entry point and execute `dev/alpha/index.ts` file.
41
+
42
+ - 024645e: Remove unused @octokit modules from cli package
43
+
44
+ - @octokit/graphql
45
+ - @octokit/graphql-schema
46
+ - @octokit/oauth-app
47
+
48
+ - d14ef24: Added automatic detection and support for the Backstage Yarn plugin when generating new packages with `yarn new`. When the plugin is installed, new packages will automatically use `backstage:^` ranges for `@backstage/*` dependencies.
49
+ - Updated dependencies
50
+ - @backstage/eslint-plugin@0.1.12
51
+ - @backstage/integration@1.18.1
52
+ - @backstage/config-loader@1.10.5
53
+ - @backstage/config@1.3.5
54
+
3
55
  ## 0.34.4-next.3
4
56
 
5
57
  ### Patch Changes
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var process$1 = require('process');
5
6
  var fs = require('fs-extra');
6
7
  var chalk = require('chalk');
7
8
  var minimatch = require('minimatch');
@@ -65,7 +66,12 @@ var bump = async (opts) => {
65
66
  }
66
67
  let findTargetVersion;
67
68
  let releaseManifest;
68
- if (semver__default.default.valid(opts.release)) {
69
+ if (process$1.env.BACKSTAGE_MANIFEST_FILE) {
70
+ releaseManifest = await fs__default.default.readJson(process$1.env.BACKSTAGE_MANIFEST_FILE);
71
+ findTargetVersion = createStrictVersionFinder({
72
+ releaseManifest
73
+ });
74
+ } else if (semver__default.default.valid(opts.release)) {
69
75
  releaseManifest = await releaseManifests.getManifestByVersion({ version: opts.release });
70
76
  findTargetVersion = createStrictVersionFinder({
71
77
  releaseManifest
@@ -73,15 +79,18 @@ var bump = async (opts) => {
73
79
  } else {
74
80
  if (opts.release === "next") {
75
81
  const next = await releaseManifests.getManifestByReleaseLine({
76
- releaseLine: "next"
82
+ releaseLine: "next",
83
+ versionsBaseUrl: process$1.env.BACKSTAGE_VERSIONS_BASE_URL
77
84
  });
78
85
  const main = await releaseManifests.getManifestByReleaseLine({
79
- releaseLine: "main"
86
+ releaseLine: "main",
87
+ versionsBaseUrl: process$1.env.BACKSTAGE_VERSIONS_BASE_URL
80
88
  });
81
89
  releaseManifest = semver__default.default.gt(next.releaseVersion, main.releaseVersion) ? next : main;
82
90
  } else {
83
91
  releaseManifest = await releaseManifests.getManifestByReleaseLine({
84
- releaseLine: opts.release
92
+ releaseLine: opts.release,
93
+ versionsBaseUrl: process$1.env.BACKSTAGE_VERSIONS_BASE_URL
85
94
  });
86
95
  }
87
96
  findTargetVersion = createVersionFinder({
@@ -95,11 +104,8 @@ var bump = async (opts) => {
95
104
  `Updating yarn plugin to v${releaseManifest.releaseVersion}...`
96
105
  );
97
106
  console.log();
98
- await run.run("yarn", [
99
- "plugin",
100
- "import",
101
- `https://versions.backstage.io/v1/releases/${releaseManifest.releaseVersion}/yarn-plugin`
102
- ]);
107
+ const yarnPluginUrl = process$1.env.BACKSTAGE_VERSIONS_BASE_URL ? `${process$1.env.BACKSTAGE_VERSIONS_BASE_URL}/v1/releases/${releaseManifest.releaseVersion}/yarn-plugin` : `https://versions.backstage.io/v1/releases/${releaseManifest.releaseVersion}/yarn-plugin`;
108
+ await run.run("yarn", ["plugin", "import", yarnPluginUrl]);
103
109
  console.log();
104
110
  }
105
111
  const dependencyMap = await packages.mapDependencies(paths.paths.targetDir, pattern);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.13.0-next.2";
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 = "1.4.4-next.0";
3
+ var version = "1.4.4";
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.9.1-next.1";
3
+ var version = "1.9.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.4-next.3";
3
+ var version = "0.34.4";
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.5-next.0";
3
+ var version = "1.3.5";
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.1-next.0";
3
+ var version = "1.19.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.2-next.3";
3
+ var version = "0.18.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 = "1.11.1-next.0";
3
+ var version = "1.11.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.15-next.2";
3
+ var version = "1.1.15";
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.2-next.1";
3
+ var version = "0.3.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.12.1-next.2";
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.7-next.1";
3
+ var version = "0.4.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.7.12-next.1";
3
+ var version = "1.7.12";
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.6.9-next.0";
3
+ var version = "0.7.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.25.5-next.0";
3
+ var version = "0.25.5";
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.13-next.0";
3
+ var version = "0.2.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 = "1.19.1-next.0";
3
+ var version = "1.19.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.0-next.1";
3
+ var version = "0.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 = "0.3.4-next.1";
3
+ var version = "0.3.4";
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.4-next.3",
3
+ "version": "0.34.4",
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.5",
51
- "@backstage/cli-common": "0.1.15",
52
- "@backstage/cli-node": "0.2.14",
53
- "@backstage/config": "1.3.5-next.0",
54
- "@backstage/config-loader": "1.10.5-next.0",
55
- "@backstage/errors": "1.2.7",
56
- "@backstage/eslint-plugin": "0.1.11",
57
- "@backstage/integration": "1.18.1-next.1",
58
- "@backstage/release-manifests": "0.0.13",
59
- "@backstage/types": "1.2.2",
50
+ "@backstage/catalog-model": "^1.7.5",
51
+ "@backstage/cli-common": "^0.1.15",
52
+ "@backstage/cli-node": "^0.2.14",
53
+ "@backstage/config": "^1.3.5",
54
+ "@backstage/config-loader": "^1.10.5",
55
+ "@backstage/errors": "^1.2.7",
56
+ "@backstage/eslint-plugin": "^0.1.12",
57
+ "@backstage/integration": "^1.18.1",
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.4-next.0",
155
- "@backstage/backend-test-utils": "1.9.1-next.1",
156
- "@backstage/catalog-client": "1.12.0",
157
- "@backstage/config": "1.3.5-next.0",
158
- "@backstage/core-app-api": "1.19.1-next.0",
159
- "@backstage/core-components": "0.18.2-next.3",
160
- "@backstage/core-plugin-api": "1.11.1-next.0",
161
- "@backstage/dev-utils": "1.1.15-next.2",
162
- "@backstage/errors": "1.2.7",
163
- "@backstage/plugin-auth-backend": "0.25.5-next.0",
164
- "@backstage/plugin-auth-backend-module-guest-provider": "0.2.13-next.0",
165
- "@backstage/plugin-catalog-node": "1.19.1-next.0",
166
- "@backstage/plugin-scaffolder-node": "0.12.0-next.1",
167
- "@backstage/plugin-scaffolder-node-test-utils": "0.3.4-next.1",
168
- "@backstage/test-utils": "1.7.12-next.1",
169
- "@backstage/theme": "0.6.9-next.0",
154
+ "@backstage/backend-plugin-api": "^1.4.4",
155
+ "@backstage/backend-test-utils": "^1.9.1",
156
+ "@backstage/catalog-client": "^1.12.0",
157
+ "@backstage/config": "^1.3.5",
158
+ "@backstage/core-app-api": "^1.19.1",
159
+ "@backstage/core-components": "^0.18.2",
160
+ "@backstage/core-plugin-api": "^1.11.1",
161
+ "@backstage/dev-utils": "^1.1.15",
162
+ "@backstage/errors": "^1.2.7",
163
+ "@backstage/plugin-auth-backend": "^0.25.5",
164
+ "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.13",
165
+ "@backstage/plugin-catalog-node": "^1.19.1",
166
+ "@backstage/plugin-scaffolder-node": "^0.12.0",
167
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.3.4",
168
+ "@backstage/test-utils": "^1.7.12",
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",