@backstage/cli 0.27.1-next.1 → 0.27.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/config/webpack-public-path.js +31 -0
  3. package/dist/cjs/{build-CWgSfGa7.cjs.js → build-4xYS_mRN.cjs.js} +9 -8
  4. package/dist/cjs/{buildBackend-DEbegAOg.cjs.js → buildBackend-tihc2jXI.cjs.js} +9 -7
  5. package/dist/cjs/{buildWorkspace-B0z3tt9J.cjs.js → buildWorkspace-DzGmnLIA.cjs.js} +4 -4
  6. package/dist/cjs/{bump-D04QfqBe.cjs.js → bump-D7bCh9so.cjs.js} +76 -10
  7. package/dist/cjs/{clean-BZ-rt4Vi.cjs.js → clean-CC3Mt_l3.cjs.js} +2 -2
  8. package/dist/cjs/{clean-BEdAwrl-.cjs.js → clean-o78W1uJm.cjs.js} +2 -2
  9. package/dist/cjs/{codeowners-BnjPN0mh.cjs.js → codeowners-DOH0XAJ6.cjs.js} +2 -2
  10. package/dist/cjs/{config-qklGM2Df.cjs.js → config-l0OM68oC.cjs.js} +2 -2
  11. package/dist/cjs/{createDistWorkspace-CHXweXXc.cjs.js → createDistWorkspace-BKOuT4y9.cjs.js} +26 -16
  12. package/dist/cjs/{createPlugin-BL6IF-2G.cjs.js → createPlugin-BjaWNEr7.cjs.js} +5 -5
  13. package/dist/cjs/{diff-BFp1ykNI.cjs.js → diff-qR_Krjfe.cjs.js} +2 -2
  14. package/dist/cjs/{docs-BJyeZtmo.cjs.js → docs-SFsAHMuR.cjs.js} +3 -3
  15. package/dist/cjs/{fix-CuhmjiSh.cjs.js → fix-CO-_RT-P.cjs.js} +2 -2
  16. package/dist/cjs/{index-Ksgor-FS.cjs.js → index-BCv17c0S.cjs.js} +6 -6
  17. package/dist/cjs/{index-Dphv9YXX.cjs.js → index-DM0DxIJs.cjs.js} +4 -4
  18. package/dist/cjs/{index-wx4GtlYP.cjs.js → index-DMR3AyQl.cjs.js} +10 -9
  19. package/dist/cjs/{index-olkGK6rW.cjs.js → index-DjaukhiC.cjs.js} +2 -2
  20. package/dist/cjs/{index-C_GzNGdx.cjs.js → index-DnKsJMXl.cjs.js} +53 -52
  21. package/dist/cjs/{info-D4GxuCW1.cjs.js → info-qvh6nVXW.cjs.js} +3 -3
  22. package/dist/cjs/{install-CYgWqCNS.cjs.js → install-B40PDdfZ.cjs.js} +4 -4
  23. package/dist/cjs/{lint-BscdoMED.cjs.js → lint-Bi9nq5Vm.cjs.js} +2 -2
  24. package/dist/cjs/{lint-BrDrGUOd.cjs.js → lint-CYb5eR4F.cjs.js} +2 -2
  25. package/dist/cjs/{list-deprecations-B8UfuXLT.cjs.js → list-deprecations-BNbOuUo4.cjs.js} +2 -2
  26. package/dist/cjs/{moduleFederation-CQz_OcQD.cjs.js → moduleFederation-BHgfCDl2.cjs.js} +21 -4
  27. package/dist/cjs/{new-x7QFaSET.cjs.js → new-Dhd6Pd1w.cjs.js} +23 -8
  28. package/dist/cjs/{pack-BshFfDf0.cjs.js → pack-JD01KVjk.cjs.js} +2 -2
  29. package/dist/cjs/{packageExports-B_7Tw8EV.cjs.js → packageExports-B5-mokCQ.cjs.js} +3 -3
  30. package/dist/cjs/{packageLintConfigs-R-QHBO2s.cjs.js → packageLintConfigs-4_zdCGPD.cjs.js} +3 -3
  31. package/dist/cjs/{packageRole-CgKhe_aD.cjs.js → packageRole-C_9jXdSu.cjs.js} +2 -2
  32. package/dist/cjs/{packages-D3xm8yrG.cjs.js → packages-DAN7bURf.cjs.js} +3 -3
  33. package/dist/cjs/{print-DcrUhffw.cjs.js → print-B5DqDsG6.cjs.js} +3 -3
  34. package/dist/cjs/{role-Cz4_y0Am.cjs.js → role-AqzuEJaH.cjs.js} +2 -2
  35. package/dist/cjs/{run-COGwx638.cjs.js → run-TuUxKRac.cjs.js} +2 -2
  36. package/dist/cjs/{schema-DD-nctmp.cjs.js → schema-BQdbH61z.cjs.js} +3 -3
  37. package/dist/cjs/{tasks-1Jzu2AFr.cjs.js → tasks-knkf4kMY.cjs.js} +2 -2
  38. package/dist/cjs/{test-C_-fQX7I.cjs.js → test-C7TgF1oU.cjs.js} +3 -3
  39. package/dist/cjs/{test-BbPSX6DE.cjs.js → test-DHxhB9qW.cjs.js} +3 -3
  40. package/dist/cjs/{validate-BO_SPC57.cjs.js → validate-DNEzV9o_.cjs.js} +3 -3
  41. package/dist/index.cjs.js +1 -1
  42. package/package.json +22 -21
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-CHXweXXc.cjs.js');
4
- var role = require('./role-Cz4_y0Am.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-BKOuT4y9.cjs.js');
4
+ var role = require('./role-AqzuEJaH.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-C_GzNGdx.cjs.js');
7
- var buildBackend = require('./buildBackend-DEbegAOg.cjs.js');
6
+ var index = require('./index-DnKsJMXl.cjs.js');
7
+ var buildBackend = require('./buildBackend-tihc2jXI.cjs.js');
8
8
  var chalk = require('chalk');
9
9
  require('fs-extra');
10
10
  require('path');
@@ -12,7 +12,7 @@ require('p-limit');
12
12
  require('os');
13
13
  require('tar');
14
14
  require('lodash/partition');
15
- require('./run-COGwx638.cjs.js');
15
+ require('./run-TuUxKRac.cjs.js');
16
16
  require('child_process');
17
17
  require('util');
18
18
  require('@backstage/errors');
@@ -45,7 +45,7 @@ require('run-script-webpack-plugin');
45
45
  require('@pmmmwh/react-refresh-webpack-plugin');
46
46
  require('@manypkg/get-packages');
47
47
  require('webpack-node-externals');
48
- require('./moduleFederation-CQz_OcQD.cjs.js');
48
+ require('./moduleFederation-BHgfCDl2.cjs.js');
49
49
  require('lodash/pickBy');
50
50
  require('mini-css-extract-plugin');
51
51
  require('yn');
@@ -56,7 +56,7 @@ require('react-dev-utils/FileSizeReporter');
56
56
  require('react-dev-utils/formatWebpackMessages');
57
57
  require('react-dev-utils/openBrowser');
58
58
  require('webpack-dev-server');
59
- require('./config-qklGM2Df.cjs.js');
59
+ require('./config-l0OM68oC.cjs.js');
60
60
  require('@backstage/config-loader');
61
61
 
62
62
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -121,9 +121,10 @@ async function command(opts) {
121
121
  }
122
122
  return createDistWorkspace.buildPackage({
123
123
  outputs,
124
- minify: Boolean(opts.minify)
124
+ minify: Boolean(opts.minify),
125
+ workspacePackages: await cliNode.PackageGraph.listTargetPackages()
125
126
  });
126
127
  }
127
128
 
128
129
  exports.command = command;
129
- //# sourceMappingURL=index-wx4GtlYP.cjs.js.map
130
+ //# sourceMappingURL=index-DMR3AyQl.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var chalk = require('chalk');
5
5
  var yaml = require('yaml');
6
6
  var inquirer = require('inquirer');
7
- var index$1 = require('./index-C_GzNGdx.cjs.js');
7
+ var index$1 = require('./index-DnKsJMXl.cjs.js');
8
8
  var crypto = require('crypto');
9
9
  var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var request = require('@octokit/request');
@@ -230,4 +230,4 @@ async function verifyGithubOrg(org) {
230
230
  }
231
231
 
232
232
  exports.default = index;
233
- //# sourceMappingURL=index-olkGK6rW.cjs.js.map
233
+ //# sourceMappingURL=index-DjaukhiC.cjs.js.map
@@ -47,13 +47,13 @@ class NotFoundError extends CustomError {
47
47
 
48
48
  const paths = cliCommon.findPaths(__dirname);
49
49
 
50
- var version$f = "0.25.0-next.1";
50
+ var version$f = "0.25.0-next.2";
51
51
 
52
- var version$e = "0.9.0-next.1";
52
+ var version$e = "1.0.0-next.2";
53
53
 
54
- var version$d = "0.6.0-next.1";
54
+ var version$d = "1.0.0-next.2";
55
55
 
56
- var version$c = "0.27.1-next.1";
56
+ var version$c = "0.27.1-next.2";
57
57
  var dependencies = {
58
58
  "@backstage/catalog-model": "workspace:^",
59
59
  "@backstage/cli-common": "workspace:^",
@@ -66,7 +66,7 @@ var dependencies = {
66
66
  "@backstage/release-manifests": "workspace:^",
67
67
  "@backstage/types": "workspace:^",
68
68
  "@manypkg/get-packages": "^1.1.3",
69
- "@module-federation/enhanced": "^0.3.5",
69
+ "@module-federation/enhanced": "^0.6.0",
70
70
  "@octokit/graphql": "^5.0.0",
71
71
  "@octokit/graphql-schema": "^13.7.0",
72
72
  "@octokit/oauth-app": "^4.2.0",
@@ -143,6 +143,7 @@ var dependencies = {
143
143
  pirates: "^4.0.6",
144
144
  postcss: "^8.1.0",
145
145
  process: "^0.11.10",
146
+ "raw-loader": "^4.0.2",
146
147
  "react-dev-utils": "^12.0.0-next.60",
147
148
  "react-refresh": "^0.14.0",
148
149
  "recursive-readdir": "^2.2.2",
@@ -195,36 +196,36 @@ var devDependencies = {
195
196
  "@types/tar": "^6.1.1",
196
197
  "@types/terser-webpack-plugin": "^5.0.4",
197
198
  "@types/yarnpkg__lockfile": "^1.1.4",
198
- "@vitejs/plugin-react": "^4.0.4",
199
+ "@vitejs/plugin-react": "^4.3.1",
199
200
  del: "^7.0.0",
200
201
  msw: "^1.0.0",
201
202
  nodemon: "^3.0.1",
202
- vite: "^4.4.9",
203
- "vite-plugin-html": "^3.2.0",
203
+ vite: "^5.0.0",
204
+ "vite-plugin-html": "^3.2.2",
204
205
  "vite-plugin-node-polyfills": "^0.22.0"
205
206
  };
206
207
 
207
208
  var version$b = "1.2.0";
208
209
 
209
- var version$a = "1.14.2";
210
+ var version$a = "1.14.3-next.0";
210
211
 
211
- var version$9 = "0.14.11-next.0";
212
+ var version$9 = "0.14.11-next.1";
212
213
 
213
- var version$8 = "1.9.3";
214
+ var version$8 = "1.9.4-next.0";
214
215
 
215
- var version$7 = "1.0.38-next.1";
216
+ var version$7 = "1.1.0-next.2";
216
217
 
217
- var version$6 = "1.6.0-next.0";
218
+ var version$6 = "1.6.0-next.1";
218
219
 
219
- var version$5 = "0.4.11-next.1";
220
+ var version$5 = "0.4.11-next.2";
220
221
 
221
- var version$4 = "0.23.0-next.1";
222
+ var version$4 = "0.23.0-next.2";
222
223
 
223
- var version$3 = "0.2.0-next.1";
224
+ var version$3 = "0.2.0-next.2";
224
225
 
225
- var version$2 = "0.5.6";
226
+ var version$2 = "0.5.7-next.0";
226
227
 
227
- var version$1 = "0.5.0-next.1";
228
+ var version$1 = "0.5.0-next.2";
228
229
 
229
230
  const packageVersions = {
230
231
  "@backstage/backend-common": version$f,
@@ -290,7 +291,7 @@ const configOption = [
290
291
  Array()
291
292
  ];
292
293
  function registerOnboardCommand(program) {
293
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-Dphv9YXX.cjs.js'); }).then((m) => m.command)));
294
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DM0DxIJs.cjs.js'); }).then((m) => m.command)));
294
295
  }
295
296
  function registerRepoCommand(program) {
296
297
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -302,7 +303,7 @@ function registerRepoCommand(program) {
302
303
  ).option(
303
304
  "--since <ref>",
304
305
  "Only build packages and their dev dependents that changed since the specified ref"
305
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-CWgSfGa7.cjs.js'); }).then((m) => m.command)));
306
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-4xYS_mRN.cjs.js'); }).then((m) => m.command)));
306
307
  command.command("lint").description("Lint all packages in the project").option(
307
308
  "--format <format>",
308
309
  "Lint report output format",
@@ -310,17 +311,17 @@ function registerRepoCommand(program) {
310
311
  ).option(
311
312
  "--since <ref>",
312
313
  "Only lint packages that changed since the specified ref"
313
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BscdoMED.cjs.js'); }).then((m) => m.command)));
314
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Bi9nq5Vm.cjs.js'); }).then((m) => m.command)));
314
315
  command.command("fix").description("Automatically fix packages in the project").option(
315
316
  "--publish",
316
317
  "Enable additional fixes that only apply when publishing packages"
317
318
  ).option(
318
319
  "--check",
319
320
  "Fail if any packages would have been changed by the command"
320
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-CuhmjiSh.cjs.js'); }).then((m) => m.command)));
321
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BZ-rt4Vi.cjs.js'); }).then((m) => m.command)));
321
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-CO-_RT-P.cjs.js'); }).then((m) => m.command)));
322
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CC3Mt_l3.cjs.js'); }).then((m) => m.command)));
322
323
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
323
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-B8UfuXLT.cjs.js'); }).then((m) => m.command))
324
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-BNbOuUo4.cjs.js'); }).then((m) => m.command))
324
325
  );
325
326
  command.command("test").allowUnknownOption(true).option(
326
327
  "--since <ref>",
@@ -328,14 +329,14 @@ function registerRepoCommand(program) {
328
329
  ).option(
329
330
  "--jest-help",
330
331
  "Show help for Jest CLI options, which are passed through"
331
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-C_-fQX7I.cjs.js'); }).then((m) => m.command)));
332
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-C7TgF1oU.cjs.js'); }).then((m) => m.command)));
332
333
  }
333
334
  function registerScriptCommand(program) {
334
335
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
335
336
  command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect [host]", "Enable debugger in Node.js environments").option(
336
337
  "--inspect-brk [host]",
337
338
  "Enable debugger in Node.js environments, breaking before code starts"
338
- ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-Ksgor-FS.cjs.js'); }).then((m) => m.command)));
339
+ ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-BCv17c0S.cjs.js'); }).then((m) => m.command)));
339
340
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
340
341
  "--minify",
341
342
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -350,30 +351,30 @@ function registerScriptCommand(program) {
350
351
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
351
352
  (opt, opts) => opts ? [...opts, opt] : [opt],
352
353
  Array()
353
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-wx4GtlYP.cjs.js'); }).then((m) => m.command)));
354
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-DMR3AyQl.cjs.js'); }).then((m) => m.command)));
354
355
  command.command("lint [directories...]").option(
355
356
  "--format <format>",
356
357
  "Lint report output format",
357
358
  "eslint-formatter-friendly"
358
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BrDrGUOd.cjs.js'); }).then((m) => m.default)));
359
- command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-BbPSX6DE.cjs.js'); }).then((m) => m.default)));
360
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BEdAwrl-.cjs.js'); }).then((m) => m.default)));
361
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BshFfDf0.cjs.js'); }).then((m) => m.pre)));
362
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BshFfDf0.cjs.js'); }).then((m) => m.post)));
359
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-CYb5eR4F.cjs.js'); }).then((m) => m.default)));
360
+ command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-DHxhB9qW.cjs.js'); }).then((m) => m.default)));
361
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-o78W1uJm.cjs.js'); }).then((m) => m.default)));
362
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-JD01KVjk.cjs.js'); }).then((m) => m.pre)));
363
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-JD01KVjk.cjs.js'); }).then((m) => m.post)));
363
364
  }
364
365
  function registerMigrateCommand(program) {
365
366
  const command = program.command("migrate [command]").description("Migration utilities");
366
- command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-CgKhe_aD.cjs.js'); }).then((m) => m.default)));
367
+ command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-C_9jXdSu.cjs.js'); }).then((m) => m.default)));
367
368
  command.command("package-scripts").description("Set package scripts according to each package role").action(
368
369
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
369
370
  );
370
371
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
371
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-B_7Tw8EV.cjs.js'); }).then((m) => m.command))
372
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-B5-mokCQ.cjs.js'); }).then((m) => m.command))
372
373
  );
373
374
  command.command("package-lint-configs").description(
374
375
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
375
376
  ).action(
376
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-R-QHBO2s.cjs.js'); }).then((m) => m.command))
377
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-4_zdCGPD.cjs.js'); }).then((m) => m.command))
377
378
  );
378
379
  command.command("react-router-deps").description(
379
380
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -401,7 +402,7 @@ function registerCommands(program) {
401
402
  ).option(
402
403
  "--license <license>",
403
404
  "The license to use for any new packages (default: Apache-2.0)"
404
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-x7QFaSET.cjs.js'); }).then((m) => m.default)));
405
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-Dhd6Pd1w.cjs.js'); }).then((m) => m.default)));
405
406
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
406
407
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
407
408
  ).option(
@@ -415,30 +416,30 @@ function registerCommands(program) {
415
416
  ).option("--scope <scope>", "The scope to use for new packages").option(
416
417
  "--npm-registry <URL>",
417
418
  "The package registry to use for new packages"
418
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-x7QFaSET.cjs.js'); }).then((m) => m.default)));
419
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-Dhd6Pd1w.cjs.js'); }).then((m) => m.default)));
419
420
  program.command("create-plugin", { hidden: true }).option(
420
421
  "--backend",
421
422
  "Create plugin with the backend dependencies as default"
422
423
  ).description("Creates a new plugin in the current repository [DEPRECATED]").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(
423
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-BL6IF-2G.cjs.js'); }).then((m) => m.default))
424
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-BjaWNEr7.cjs.js'); }).then((m) => m.default))
424
425
  );
425
426
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
426
427
  "Diff an existing plugin with the creation template [DEPRECATED]"
427
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BFp1ykNI.cjs.js'); }).then((m) => m.default)));
428
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-qR_Krjfe.cjs.js'); }).then((m) => m.default)));
428
429
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
429
430
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
430
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-BbPSX6DE.cjs.js'); }).then((m) => m.default)));
431
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-DHxhB9qW.cjs.js'); }).then((m) => m.default)));
431
432
  program.command("config:docs").option(
432
433
  "--package <name>",
433
434
  "Only include the schema that applies to the given package"
434
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-BJyeZtmo.cjs.js'); }).then((m) => m.default)));
435
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-SFsAHMuR.cjs.js'); }).then((m) => m.default)));
435
436
  program.command("config:print").option(
436
437
  "--package <name>",
437
438
  "Only load config schema that applies to the given package"
438
439
  ).option("--lax", "Do not require environment variables to be set").option("--frontend", "Print only the frontend configuration").option("--with-secrets", "Include secrets in the printed configuration").option(
439
440
  "--format <format>",
440
441
  "Format to print the configuration in, either json or yaml [yaml]"
441
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-DcrUhffw.cjs.js'); }).then((m) => m.default)));
442
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-B5DqDsG6.cjs.js'); }).then((m) => m.default)));
442
443
  program.command("config:check").option(
443
444
  "--package <name>",
444
445
  "Only load config schema that applies to the given package"
@@ -447,14 +448,14 @@ function registerCommands(program) {
447
448
  "Enable strict config validation, forbidding errors and unknown keys"
448
449
  ).option(...configOption).description(
449
450
  "Validate that the given configuration loads and matches schema"
450
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-BO_SPC57.cjs.js'); }).then((m) => m.default)));
451
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DNEzV9o_.cjs.js'); }).then((m) => m.default)));
451
452
  program.command("config:schema").option(
452
453
  "--package <name>",
453
454
  "Only output config schema that applies to the given package"
454
455
  ).option(
455
456
  "--format <format>",
456
457
  "Format to print the schema in, either json or yaml [yaml]"
457
- ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-DD-nctmp.cjs.js'); }).then((m) => m.default)));
458
+ ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-BQdbH61z.cjs.js'); }).then((m) => m.default)));
458
459
  registerRepoCommand(program);
459
460
  registerScriptCommand(program);
460
461
  registerMigrateCommand(program);
@@ -466,7 +467,7 @@ function registerCommands(program) {
466
467
  "--release <version|next|main>",
467
468
  "Bump to a specific Backstage release line or version",
468
469
  "main"
469
- ).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-D04QfqBe.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
470
+ ).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-D7bCh9so.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
470
471
  program.command("versions:check", { hidden: true }).option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Dkx_fBkS.cjs.js'); }).then((m) => m.default)));
471
472
  program.command("versions:migrate").option(
472
473
  "--pattern <glob>",
@@ -476,18 +477,18 @@ function registerCommands(program) {
476
477
  "Skip code changes and only update package.json files"
477
478
  ).description(
478
479
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
479
- ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-D04QfqBe.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
480
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BEdAwrl-.cjs.js'); }).then((m) => m.default)));
480
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-D7bCh9so.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
481
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-o78W1uJm.cjs.js'); }).then((m) => m.default)));
481
482
  program.command("build-workspace <workspace-dir> [packages...]").option(
482
483
  "--alwaysYarnPack",
483
484
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
484
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-B0z3tt9J.cjs.js'); }).then((m) => m.default)));
485
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-olkGK6rW.cjs.js'); }).then((m) => m.default)));
486
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-D4GxuCW1.cjs.js'); }).then((m) => m.default)));
485
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-DzGmnLIA.cjs.js'); }).then((m) => m.default)));
486
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DjaukhiC.cjs.js'); }).then((m) => m.default)));
487
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-qvh6nVXW.cjs.js'); }).then((m) => m.default)));
487
488
  program.command("install [plugin-id]", { hidden: true }).option(
488
489
  "--from <packageJsonFilePath>",
489
490
  "Install from a local package.json containing the installation recipe"
490
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-CYgWqCNS.cjs.js'); }).then((m) => m.default)));
491
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-B40PDdfZ.cjs.js'); }).then((m) => m.default)));
491
492
  }
492
493
  function lazy(getActionFunc) {
493
494
  return async (...args) => {
@@ -531,4 +532,4 @@ exports.devDependencies = devDependencies;
531
532
  exports.paths = paths;
532
533
  exports.version = version;
533
534
  exports.version$1 = version$c;
534
- //# sourceMappingURL=index-C_GzNGdx.cjs.js.map
535
+ //# sourceMappingURL=index-DnKsJMXl.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-C_GzNGdx.cjs.js');
3
+ var index = require('./index-DnKsJMXl.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-COGwx638.cjs.js');
5
+ var run = require('./run-TuUxKRac.cjs.js');
6
6
  var Lockfile = require('./Lockfile-B4mqBkH6.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
@@ -57,4 +57,4 @@ var info = async () => {
57
57
  };
58
58
 
59
59
  exports.default = info;
60
- //# sourceMappingURL=info-D4GxuCW1.cjs.js.map
60
+ //# sourceMappingURL=info-qvh6nVXW.cjs.js.map
@@ -3,12 +3,12 @@
3
3
  var fs = require('fs-extra');
4
4
  require('@yarnpkg/parsers');
5
5
  require('@yarnpkg/lockfile');
6
- var packages = require('./packages-D3xm8yrG.cjs.js');
7
- var index = require('./index-C_GzNGdx.cjs.js');
6
+ var packages = require('./packages-DAN7bURf.cjs.js');
7
+ var index = require('./index-DnKsJMXl.cjs.js');
8
8
  var chalk = require('chalk');
9
9
  var sortBy = require('lodash/sortBy');
10
10
  var groupBy = require('lodash/groupBy');
11
- var run = require('./run-COGwx638.cjs.js');
11
+ var run = require('./run-TuUxKRac.cjs.js');
12
12
  require('minimatch');
13
13
  require('@manypkg/get-packages');
14
14
  require('./yarn-Ukl9MOS0.cjs.js');
@@ -265,4 +265,4 @@ var install = async (pluginId, cmd) => {
265
265
  };
266
266
 
267
267
  exports.default = install;
268
- //# sourceMappingURL=install-CYgWqCNS.cjs.js.map
268
+ //# sourceMappingURL=install-B40PDdfZ.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-C_GzNGdx.cjs.js');
6
+ var index = require('./index-DnKsJMXl.cjs.js');
7
7
  var parallel = require('./parallel-BszNaKyc.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=lint-BscdoMED.cjs.js.map
91
+ //# sourceMappingURL=lint-Bi9nq5Vm.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-C_GzNGdx.cjs.js');
3
+ var index = require('./index-DnKsJMXl.cjs.js');
4
4
  var eslint = require('eslint');
5
5
  require('commander');
6
6
  require('chalk');
@@ -33,4 +33,4 @@ var lint = async (directories, opts) => {
33
33
  };
34
34
 
35
35
  exports.default = lint;
36
- //# sourceMappingURL=lint-BrDrGUOd.cjs.js.map
36
+ //# sourceMappingURL=lint-CYb5eR4F.cjs.js.map
@@ -4,7 +4,7 @@ var chalk = require('chalk');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-C_GzNGdx.cjs.js');
7
+ var index = require('./index-DnKsJMXl.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -76,4 +76,4 @@ async function command(opts) {
76
76
  }
77
77
 
78
78
  exports.command = command;
79
- //# sourceMappingURL=list-deprecations-B8UfuXLT.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-BNbOuUo4.cjs.js.map
@@ -11,13 +11,13 @@ var cliCommon = require('@backstage/cli-common');
11
11
  var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
12
12
  var runScriptWebpackPlugin = require('run-script-webpack-plugin');
13
13
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
14
- var index = require('./index-C_GzNGdx.cjs.js');
14
+ var index = require('./index-DnKsJMXl.cjs.js');
15
15
  var fs = require('fs-extra');
16
16
  var getPackages = require('@manypkg/get-packages');
17
17
  var nodeExternals = require('webpack-node-externals');
18
18
  var pickBy = require('lodash/pickBy');
19
19
  var entryPoints = require('./entryPoints-CoHH4lBA.cjs.js');
20
- var run = require('./run-COGwx638.cjs.js');
20
+ var run = require('./run-TuUxKRac.cjs.js');
21
21
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
22
22
  var svgrTemplate = require('./svgrTemplate-BTjBQ3by.cjs.js');
23
23
  var yn = require('yn');
@@ -416,6 +416,19 @@ async function createConfig(paths, options) {
416
416
  }
417
417
  })
418
418
  );
419
+ plugins.push(
420
+ new HtmlWebpackPlugin__default.default({
421
+ meta: {
422
+ "backstage-app-mode": options?.appMode ?? "public",
423
+ // This is added to be written in the later step, and finally read by the extra entry point
424
+ "backstage-public-path": "<%= publicPath %>/"
425
+ },
426
+ minify: false,
427
+ publicPath: "<%= publicPath %>",
428
+ filename: "index.html.tmpl",
429
+ template: `raw-loader!${paths.targetHtml}`
430
+ })
431
+ );
419
432
  }
420
433
  if (options.moduleFederation) {
421
434
  const isRemote = options.moduleFederation?.mode === "remote";
@@ -536,7 +549,11 @@ async function createConfig(paths, options) {
536
549
  },
537
550
  devtool: isDev ? "eval-cheap-module-source-map" : "source-map",
538
551
  context: paths.targetPath,
539
- entry: [...options.additionalEntryPoints ?? [], paths.targetEntry],
552
+ entry: [
553
+ require.resolve("@backstage/cli/config/webpack-public-path"),
554
+ ...options.additionalEntryPoints ?? [],
555
+ paths.targetEntry
556
+ ],
540
557
  resolve: {
541
558
  extensions: [".ts", ".tsx", ".mjs", ".js", ".jsx", ".json", ".wasm"],
542
559
  mainFields: ["browser", "module", "main"],
@@ -885,4 +902,4 @@ exports.resolveBaseUrl = resolveBaseUrl;
885
902
  exports.resolveBundlingPaths = resolveBundlingPaths;
886
903
  exports.resolveEndpoint = resolveEndpoint;
887
904
  exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
888
- //# sourceMappingURL=moduleFederation-CQz_OcQD.cjs.js.map
905
+ //# sourceMappingURL=moduleFederation-BHgfCDl2.cjs.js.map
@@ -7,14 +7,14 @@ var chalk = require('chalk');
7
7
  var inquirer = require('inquirer');
8
8
  var camelCase = require('lodash/camelCase');
9
9
  var upperFirst = require('lodash/upperFirst');
10
- var index = require('./index-C_GzNGdx.cjs.js');
11
- var codeowners = require('./codeowners-BnjPN0mh.cjs.js');
12
- var tasks = require('./tasks-1Jzu2AFr.cjs.js');
10
+ var index = require('./index-DnKsJMXl.cjs.js');
11
+ var codeowners = require('./codeowners-DOH0XAJ6.cjs.js');
12
+ var tasks = require('./tasks-knkf4kMY.cjs.js');
13
13
  var Lockfile = require('./Lockfile-B4mqBkH6.cjs.js');
14
14
  require('minimatch');
15
15
  require('@manypkg/get-packages');
16
16
  require('./yarn-Ukl9MOS0.cjs.js');
17
- require('./run-COGwx638.cjs.js');
17
+ require('./run-TuUxKRac.cjs.js');
18
18
  var partition = require('lodash/partition');
19
19
  var cliNode = require('@backstage/cli-node');
20
20
  var errors = require('@backstage/errors');
@@ -275,10 +275,10 @@ const backendPlugin = createFactory({
275
275
  }
276
276
  );
277
277
  });
278
- await tasks.addToBackend(name, {
279
- type: "plugin"
280
- });
281
278
  }
279
+ await tasks.addToBackend(name, {
280
+ type: "plugin"
281
+ });
282
282
  if (options.owner) {
283
283
  await codeowners.addCodeownersEntry(`/plugins/${id}`, options.owner);
284
284
  }
@@ -599,6 +599,21 @@ const scaffolderModule = createFactory({
599
599
  license: ctx.license
600
600
  }
601
601
  });
602
+ if (await fs__default.default.pathExists(index.paths.resolveTargetRoot("packages/backend"))) {
603
+ await tasks.Task.forItem("backend", "adding dependency", async () => {
604
+ await tasks.addPackageDependency(
605
+ index.paths.resolveTargetRoot("packages/backend/package.json"),
606
+ {
607
+ dependencies: {
608
+ [name]: `^${ctx.defaultVersion}`
609
+ }
610
+ }
611
+ );
612
+ });
613
+ }
614
+ await tasks.addToBackend(name, {
615
+ type: "module"
616
+ });
602
617
  if (options.owner) {
603
618
  await codeowners.addCodeownersEntry(`/plugins/${slug}`, options.owner);
604
619
  }
@@ -786,4 +801,4 @@ var _new = async (opts) => {
786
801
  };
787
802
 
788
803
  exports.default = _new;
789
- //# sourceMappingURL=new-x7QFaSET.cjs.js.map
804
+ //# sourceMappingURL=new-Dhd6Pd1w.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var productionPack = require('./productionPack-BWU8WkGs.cjs.js');
4
- var index = require('./index-C_GzNGdx.cjs.js');
4
+ var index = require('./index-DnKsJMXl.cjs.js');
5
5
  var fs = require('fs-extra');
6
6
  var publishing = require('./publishing-DQtsKTbc.cjs.js');
7
7
  require('npm-packlist');
@@ -30,4 +30,4 @@ const post = async () => {
30
30
 
31
31
  exports.post = post;
32
32
  exports.pre = pre;
33
- //# sourceMappingURL=pack-BshFfDf0.cjs.js.map
33
+ //# sourceMappingURL=pack-JD01KVjk.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var fix = require('./fix-CuhmjiSh.cjs.js');
3
+ var fix = require('./fix-CO-_RT-P.cjs.js');
4
4
  require('@backstage/cli-node');
5
5
  require('fs-extra');
6
6
  require('path');
7
- require('./index-C_GzNGdx.cjs.js');
7
+ require('./index-DnKsJMXl.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -24,4 +24,4 @@ async function command() {
24
24
  }
25
25
 
26
26
  exports.command = command;
27
- //# sourceMappingURL=packageExports-B_7Tw8EV.cjs.js.map
27
+ //# sourceMappingURL=packageExports-B5-mokCQ.cjs.js.map
@@ -3,9 +3,9 @@
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var run = require('./run-COGwx638.cjs.js');
6
+ var run = require('./run-TuUxKRac.cjs.js');
7
7
  require('child_process');
8
- require('./index-C_GzNGdx.cjs.js');
8
+ require('./index-DnKsJMXl.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -78,4 +78,4 @@ async function command() {
78
78
  }
79
79
 
80
80
  exports.command = command;
81
- //# sourceMappingURL=packageLintConfigs-R-QHBO2s.cjs.js.map
81
+ //# sourceMappingURL=packageLintConfigs-4_zdCGPD.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var getPackages = require('@manypkg/get-packages');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-C_GzNGdx.cjs.js');
7
+ var index = require('./index-DnKsJMXl.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -55,4 +55,4 @@ var packageRole = async () => {
55
55
  };
56
56
 
57
57
  exports.default = packageRole;
58
- //# sourceMappingURL=packageRole-CgKhe_aD.cjs.js.map
58
+ //# sourceMappingURL=packageRole-C_9jXdSu.cjs.js.map