@backstage/cli 0.34.5-next.1 → 0.34.6-next.0
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 +35 -0
- package/dist/modules/migrate/commands/versions/bump.cjs.js +9 -20
- package/dist/modules/new/commands/new.cjs.js +2 -1
- package/dist/packages/backend-defaults/package.json.cjs.js +1 -1
- package/dist/packages/backend-plugin-api/package.json.cjs.js +1 -1
- package/dist/packages/backend-test-utils/package.json.cjs.js +1 -1
- package/dist/packages/catalog-client/package.json.cjs.js +1 -1
- package/dist/packages/cli/package.json.cjs.js +1 -1
- package/dist/packages/config/package.json.cjs.js +1 -1
- package/dist/packages/core-app-api/package.json.cjs.js +1 -1
- package/dist/packages/core-components/package.json.cjs.js +1 -1
- package/dist/packages/core-plugin-api/package.json.cjs.js +1 -1
- package/dist/packages/dev-utils/package.json.cjs.js +1 -1
- package/dist/packages/frontend-defaults/package.json.cjs.js +1 -1
- package/dist/packages/frontend-plugin-api/package.json.cjs.js +1 -1
- package/dist/packages/frontend-test-utils/package.json.cjs.js +1 -1
- package/dist/packages/test-utils/package.json.cjs.js +1 -1
- package/dist/packages/theme/package.json.cjs.js +1 -1
- package/dist/plugins/auth-backend/package.json.cjs.js +1 -1
- package/dist/plugins/auth-backend-module-guest-provider/package.json.cjs.js +1 -1
- package/dist/plugins/catalog-node/package.json.cjs.js +1 -1
- package/dist/plugins/scaffolder-node/package.json.cjs.js +1 -1
- package/dist/plugins/scaffolder-node-test-utils/package.json.cjs.js +1 -1
- package/package.json +23 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @backstage/cli
|
|
2
2
|
|
|
3
|
+
## 0.34.6-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c8c2329: Add proxy configuration from env-vars to create-app tasks
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/integration@1.18.3-next.0
|
|
10
|
+
- @backstage/cli-common@0.1.16-next.0
|
|
11
|
+
- @backstage/cli-node@0.2.16-next.0
|
|
12
|
+
- @backstage/config@1.3.6
|
|
13
|
+
- @backstage/release-manifests@0.0.13
|
|
14
|
+
- @backstage/config-loader@1.10.7-next.0
|
|
15
|
+
- @backstage/catalog-model@1.7.6
|
|
16
|
+
- @backstage/errors@1.2.7
|
|
17
|
+
- @backstage/eslint-plugin@0.2.0
|
|
18
|
+
- @backstage/types@1.2.2
|
|
19
|
+
|
|
20
|
+
## 0.34.5
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- fc7cbfc: The templates executed with the `yarn new` command now supports templating filenames.
|
|
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
|
+
- 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`.
|
|
27
|
+
- b2bef92: Convert all enums to erasable-syntax compliant patterns
|
|
28
|
+
- 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.
|
|
29
|
+
- 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.
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/integration@1.18.2
|
|
32
|
+
- @backstage/eslint-plugin@0.2.0
|
|
33
|
+
- @backstage/config-loader@1.10.6
|
|
34
|
+
- @backstage/config@1.3.6
|
|
35
|
+
- @backstage/cli-node@0.2.15
|
|
36
|
+
- @backstage/catalog-model@1.7.6
|
|
37
|
+
|
|
3
38
|
## 0.34.5-next.1
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var cliCommon = require('@backstage/cli-common');
|
|
6
|
+
var process = require('process');
|
|
6
7
|
var fs = require('fs-extra');
|
|
7
8
|
var chalk = require('chalk');
|
|
8
9
|
var minimatch = require('minimatch');
|
|
@@ -13,7 +14,6 @@ var paths = require('../../../../lib/paths.cjs.js');
|
|
|
13
14
|
var yarnPlugin = require('../../../../lib/yarnPlugin.cjs.js');
|
|
14
15
|
var Lockfile = require('../../../../lib/versioning/Lockfile.cjs.js');
|
|
15
16
|
var packages = require('../../../../lib/versioning/packages.cjs.js');
|
|
16
|
-
var cliCommon = require('@backstage/cli-common');
|
|
17
17
|
var parallel = require('../../../../lib/parallel.cjs.js');
|
|
18
18
|
var releaseManifests = require('@backstage/release-manifests');
|
|
19
19
|
var migrate = require('./migrate.cjs.js');
|
|
@@ -26,18 +26,7 @@ var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
|
26
26
|
var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
|
|
27
27
|
var semver__default = /*#__PURE__*/_interopDefaultCompat(semver);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
function maybeBootstrapProxy() {
|
|
31
|
-
const globalAgentNamespace = process.env.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE ?? "GLOBAL_AGENT_";
|
|
32
|
-
if (process.env[`${globalAgentNamespace}HTTP_PROXY`] || process.env[`${globalAgentNamespace}HTTPS_PROXY`]) {
|
|
33
|
-
const globalAgent = require("global-agent");
|
|
34
|
-
globalAgent.bootstrap();
|
|
35
|
-
}
|
|
36
|
-
if (process.env.HTTP_PROXY || process.env.HTTPS_PROXY) {
|
|
37
|
-
const { setGlobalDispatcher, EnvHttpProxyAgent } = require("undici");
|
|
38
|
-
setGlobalDispatcher(new EnvHttpProxyAgent());
|
|
39
|
-
}
|
|
40
|
-
}
|
|
29
|
+
cliCommon.bootstrapEnvProxyAgents();
|
|
41
30
|
const DEP_TYPES = [
|
|
42
31
|
"dependencies",
|
|
43
32
|
"devDependencies",
|
|
@@ -66,8 +55,8 @@ var bump = async (opts) => {
|
|
|
66
55
|
}
|
|
67
56
|
let findTargetVersion;
|
|
68
57
|
let releaseManifest;
|
|
69
|
-
if (process
|
|
70
|
-
releaseManifest = await fs__default.default.readJson(process
|
|
58
|
+
if (process.env.BACKSTAGE_MANIFEST_FILE) {
|
|
59
|
+
releaseManifest = await fs__default.default.readJson(process.env.BACKSTAGE_MANIFEST_FILE);
|
|
71
60
|
findTargetVersion = createStrictVersionFinder({
|
|
72
61
|
releaseManifest
|
|
73
62
|
});
|
|
@@ -80,17 +69,17 @@ var bump = async (opts) => {
|
|
|
80
69
|
if (opts.release === "next") {
|
|
81
70
|
const next = await releaseManifests.getManifestByReleaseLine({
|
|
82
71
|
releaseLine: "next",
|
|
83
|
-
versionsBaseUrl: process
|
|
72
|
+
versionsBaseUrl: process.env.BACKSTAGE_VERSIONS_BASE_URL
|
|
84
73
|
});
|
|
85
74
|
const main = await releaseManifests.getManifestByReleaseLine({
|
|
86
75
|
releaseLine: "main",
|
|
87
|
-
versionsBaseUrl: process
|
|
76
|
+
versionsBaseUrl: process.env.BACKSTAGE_VERSIONS_BASE_URL
|
|
88
77
|
});
|
|
89
78
|
releaseManifest = semver__default.default.gt(next.releaseVersion, main.releaseVersion) ? next : main;
|
|
90
79
|
} else {
|
|
91
80
|
releaseManifest = await releaseManifests.getManifestByReleaseLine({
|
|
92
81
|
releaseLine: opts.release,
|
|
93
|
-
versionsBaseUrl: process
|
|
82
|
+
versionsBaseUrl: process.env.BACKSTAGE_VERSIONS_BASE_URL
|
|
94
83
|
});
|
|
95
84
|
}
|
|
96
85
|
findTargetVersion = createVersionFinder({
|
|
@@ -104,7 +93,7 @@ var bump = async (opts) => {
|
|
|
104
93
|
`Updating yarn plugin to v${releaseManifest.releaseVersion}...`
|
|
105
94
|
);
|
|
106
95
|
console.log();
|
|
107
|
-
const yarnPluginUrl = process
|
|
96
|
+
const yarnPluginUrl = process.env.BACKSTAGE_VERSIONS_BASE_URL ? `${process.env.BACKSTAGE_VERSIONS_BASE_URL}/v1/releases/${releaseManifest.releaseVersion}/yarn-plugin` : `https://versions.backstage.io/v1/releases/${releaseManifest.releaseVersion}/yarn-plugin`;
|
|
108
97
|
await run.run("yarn", ["plugin", "import", yarnPluginUrl]);
|
|
109
98
|
console.log();
|
|
110
99
|
}
|
|
@@ -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
|
-
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/cli",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.6-next.0",
|
|
4
4
|
"description": "CLI for developing Backstage plugins and apps",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@backstage/catalog-model": "1.7.6
|
|
51
|
-
"@backstage/cli-common": "0.1.
|
|
52
|
-
"@backstage/cli-node": "0.2.
|
|
53
|
-
"@backstage/config": "1.3.6
|
|
54
|
-
"@backstage/config-loader": "1.10.
|
|
50
|
+
"@backstage/catalog-model": "1.7.6",
|
|
51
|
+
"@backstage/cli-common": "0.1.16-next.0",
|
|
52
|
+
"@backstage/cli-node": "0.2.16-next.0",
|
|
53
|
+
"@backstage/config": "1.3.6",
|
|
54
|
+
"@backstage/config-loader": "1.10.7-next.0",
|
|
55
55
|
"@backstage/errors": "1.2.7",
|
|
56
|
-
"@backstage/eslint-plugin": "0.2.0
|
|
57
|
-
"@backstage/integration": "1.18.
|
|
56
|
+
"@backstage/eslint-plugin": "0.2.0",
|
|
57
|
+
"@backstage/integration": "1.18.3-next.0",
|
|
58
58
|
"@backstage/release-manifests": "0.0.13",
|
|
59
59
|
"@backstage/types": "1.2.2",
|
|
60
60
|
"@manypkg/get-packages": "^1.1.3",
|
|
@@ -151,22 +151,22 @@
|
|
|
151
151
|
"zod-validation-error": "^3.4.0"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@backstage/backend-plugin-api": "1.5.
|
|
155
|
-
"@backstage/backend-test-utils": "1.10.
|
|
156
|
-
"@backstage/catalog-client": "1.12.1
|
|
157
|
-
"@backstage/config": "1.3.6
|
|
158
|
-
"@backstage/core-app-api": "1.19.
|
|
159
|
-
"@backstage/core-components": "0.18.
|
|
160
|
-
"@backstage/core-plugin-api": "1.
|
|
161
|
-
"@backstage/dev-utils": "1.1.
|
|
154
|
+
"@backstage/backend-plugin-api": "1.5.1-next.0",
|
|
155
|
+
"@backstage/backend-test-utils": "1.10.1-next.0",
|
|
156
|
+
"@backstage/catalog-client": "1.12.1",
|
|
157
|
+
"@backstage/config": "1.3.6",
|
|
158
|
+
"@backstage/core-app-api": "1.19.3-next.0",
|
|
159
|
+
"@backstage/core-components": "0.18.4-next.0",
|
|
160
|
+
"@backstage/core-plugin-api": "1.12.1-next.0",
|
|
161
|
+
"@backstage/dev-utils": "1.1.18-next.0",
|
|
162
162
|
"@backstage/errors": "1.2.7",
|
|
163
|
-
"@backstage/plugin-auth-backend": "0.25.
|
|
164
|
-
"@backstage/plugin-auth-backend-module-guest-provider": "0.2.
|
|
165
|
-
"@backstage/plugin-catalog-node": "1.20.
|
|
166
|
-
"@backstage/plugin-scaffolder-node": "0.12.
|
|
167
|
-
"@backstage/plugin-scaffolder-node-test-utils": "0.3.
|
|
168
|
-
"@backstage/test-utils": "1.7.
|
|
169
|
-
"@backstage/theme": "0.7.0",
|
|
163
|
+
"@backstage/plugin-auth-backend": "0.25.7-next.0",
|
|
164
|
+
"@backstage/plugin-auth-backend-module-guest-provider": "0.2.15-next.0",
|
|
165
|
+
"@backstage/plugin-catalog-node": "1.20.1-next.0",
|
|
166
|
+
"@backstage/plugin-scaffolder-node": "0.12.2-next.0",
|
|
167
|
+
"@backstage/plugin-scaffolder-node-test-utils": "0.3.6-next.0",
|
|
168
|
+
"@backstage/test-utils": "1.7.14-next.0",
|
|
169
|
+
"@backstage/theme": "0.7.1-next.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",
|