@backstage/cli 0.0.0-nightly-202182821947 → 0.0.0-nightly-20219422538

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 (37) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/config/jest.js +63 -10
  3. package/dist/cjs/{build-1187deab.cjs.js → build-61ca5bd1.cjs.js} +3 -3
  4. package/dist/cjs/{build-8e1b8d41.cjs.js → build-71c737ac.cjs.js} +3 -3
  5. package/dist/cjs/{build-39f912ec.cjs.js → build-b61079aa.cjs.js} +3 -3
  6. package/dist/cjs/{build-6e08d7a9.cjs.js → build-b73c8aec.cjs.js} +5 -5
  7. package/dist/cjs/{buildImage-9a44f994.cjs.js → buildImage-66df0236.cjs.js} +4 -4
  8. package/dist/cjs/{buildWorkspace-dd1606e3.cjs.js → buildWorkspace-a669db03.cjs.js} +4 -4
  9. package/dist/cjs/{bump-5a872779.cjs.js → bump-2c638ffb.cjs.js} +4 -4
  10. package/dist/cjs/{bundle-7f5b7937.cjs.js → bundle-11249412.cjs.js} +5 -5
  11. package/dist/cjs/{clean-8cd75705.cjs.js → clean-d2c13478.cjs.js} +2 -2
  12. package/dist/cjs/{config-05bee32f.cjs.js → config-f0ca8800.cjs.js} +2 -2
  13. package/dist/cjs/{createPlugin-51677cf6.cjs.js → createPlugin-3e4b2655.cjs.js} +4 -4
  14. package/dist/cjs/{dev-50371018.cjs.js → dev-42d0b115.cjs.js} +4 -4
  15. package/dist/cjs/{diff-035d482a.cjs.js → diff-b3b15773.cjs.js} +5 -5
  16. package/dist/cjs/{docs-fb2423df.cjs.js → docs-75bdaacf.cjs.js} +3 -3
  17. package/dist/cjs/{index-5985a5a5.cjs.js → index-639c9015.cjs.js} +3 -3
  18. package/dist/cjs/{index-67ef8ae8.cjs.js → index-a8bb12f8.cjs.js} +2 -2
  19. package/dist/cjs/{index-71f2ad3d.cjs.js → index-b0d38feb.cjs.js} +34 -32
  20. package/dist/cjs/info-35e4ffe5.cjs.js +43 -0
  21. package/dist/cjs/{lint-4f87f985.cjs.js → lint-a5758aab.cjs.js} +3 -3
  22. package/dist/cjs/{lint-afd9e393.cjs.js → lint-bda30147.cjs.js} +3 -3
  23. package/dist/cjs/{pack-222daa33.cjs.js → pack-08aaeb74.cjs.js} +2 -2
  24. package/dist/cjs/{packager-798a4821.cjs.js → packager-a538a0d7.cjs.js} +2 -2
  25. package/dist/cjs/{paths-abbcf701.cjs.js → paths-38b204ca.cjs.js} +3 -3
  26. package/dist/cjs/{print-b4980b81.cjs.js → print-38e80be2.cjs.js} +3 -3
  27. package/dist/cjs/{removePlugin-a1dfa456.cjs.js → removePlugin-eb1ad78f.cjs.js} +3 -3
  28. package/dist/cjs/{run-ff794585.cjs.js → run-e50c9fbb.cjs.js} +2 -2
  29. package/dist/cjs/{schema-611e21db.cjs.js → schema-c9b6362b.cjs.js} +3 -3
  30. package/dist/cjs/{serve-b01584f7.cjs.js → serve-7edb404b.cjs.js} +7 -7
  31. package/dist/cjs/{serve-468158f2.cjs.js → serve-956c01c6.cjs.js} +6 -6
  32. package/dist/cjs/{server-f837273a.cjs.js → server-7a3f6d5a.cjs.js} +2 -2
  33. package/dist/cjs/{tasks-c92266a9.cjs.js → tasks-cfde6de5.cjs.js} +2 -2
  34. package/dist/cjs/{testCommand-adf4b34b.cjs.js → testCommand-635a6e22.cjs.js} +3 -3
  35. package/dist/cjs/{validate-a49d094d.cjs.js → validate-08241b93.cjs.js} +3 -3
  36. package/dist/index.cjs.js +1 -1
  37. package/package.json +8 -7
package/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # @backstage/cli
2
2
 
3
- ## 0.0.0-nightly-202182821947
3
+ ## 0.0.0-nightly-20219422538
4
+
5
+ ### Patch Changes
6
+
7
+ - 185fec5c0c: The default jest configuration used by the `test` command now supports yarn workspaces. By running `backstage-cli test` in the root of a monorepo, all packages will now automatically be included in the test suite and it will run just like it does within a package. Each package in the monorepo will still use its own local jest configuration, and only packages that have `backstage-cli test` in the `test` script within `package.json` will be included.
8
+ - Updated dependencies
9
+ - @backstage/config-loader@0.0.0-nightly-20219422538
10
+
11
+ ## 0.7.14
4
12
 
5
13
  ### Patch Changes
6
14
 
@@ -10,7 +18,7 @@
10
18
  - 58f91943ab: Improved ´plugin:diff´ check for the `package.json` `"files"` field.
11
19
  - 12e074a6e4: Fix duplication checks to stop looking for the old core packages, and to allow some explicitly
12
20
  - Updated dependencies
13
- - @backstage/config-loader@0.0.0-nightly-202182821947
21
+ - @backstage/config-loader@0.6.9
14
22
 
15
23
  ## 0.7.13
16
24
 
package/config/jest.js CHANGED
@@ -16,20 +16,23 @@
16
16
 
17
17
  const fs = require('fs-extra');
18
18
  const path = require('path');
19
+ const glob = require('util').promisify(require('glob'));
19
20
 
20
- async function getConfig() {
21
+ async function getProjectConfig(targetPath) {
22
+ const configJsPath = path.resolve(targetPath, 'jest.config.js');
23
+ const configTsPath = path.resolve(targetPath, 'jest.config.ts');
21
24
  // If the package has it's own jest config, we use that instead.
22
- if (await fs.pathExists('jest.config.js')) {
23
- return require(path.resolve('jest.config.js'));
24
- } else if (await fs.pathExists('jest.config.ts')) {
25
- return require(path.resolve('jest.config.ts'));
25
+ if (await fs.pathExists(configJsPath)) {
26
+ return require(configJsPath);
27
+ } else if (await fs.pathExists(configTsPath)) {
28
+ return require(configTsPath);
26
29
  }
27
30
 
28
31
  // We read all "jest" config fields in package.json files all the way to the filesystem root.
29
32
  // All configs are merged together to create the final config, with longer paths taking precedence.
30
33
  // The merging of the configs is shallow, meaning e.g. all transforms are replaced if new ones are defined.
31
34
  const pkgJsonConfigs = [];
32
- let currentPath = process.cwd();
35
+ let currentPath = targetPath;
33
36
 
34
37
  // Some sanity check to avoid infinite loop
35
38
  for (let i = 0; i < 100; i++) {
@@ -70,8 +73,8 @@ async function getConfig() {
70
73
  const transformModulePattern = transformModules && `(?!${transformModules})`;
71
74
 
72
75
  const options = {
73
- rootDir: path.resolve('src'),
74
- coverageDirectory: path.resolve('coverage'),
76
+ rootDir: path.resolve(targetPath, 'src'),
77
+ coverageDirectory: path.resolve(targetPath, 'coverage'),
75
78
  collectCoverageFrom: ['**/*.{js,jsx,ts,tsx}', '!**/*.d.ts'],
76
79
  moduleNameMapper: {
77
80
  '\\.(css|less|scss|sss|styl)$': require.resolve('jest-css-modules'),
@@ -96,11 +99,61 @@ async function getConfig() {
96
99
  };
97
100
 
98
101
  // Use src/setupTests.ts as the default location for configuring test env
99
- if (fs.existsSync('src/setupTests.ts')) {
102
+ if (fs.existsSync(path.resolve(targetPath, 'src/setupTests.ts'))) {
100
103
  options.setupFilesAfterEnv = ['<rootDir>/setupTests.ts'];
101
104
  }
102
105
 
103
106
  return Object.assign(options, ...pkgJsonConfigs);
104
107
  }
105
108
 
106
- module.exports = getConfig();
109
+ // This loads the root jest config, which in turn will either refer to a single
110
+ // configuration for the current package, or a collection of configurations for
111
+ // the target workspace packages
112
+ async function getRootConfig() {
113
+ const targetPath = process.cwd();
114
+ const targetPackagePath = path.resolve(targetPath, 'package.json');
115
+ const exists = await fs.pathExists(targetPackagePath);
116
+
117
+ if (!exists) {
118
+ return getProjectConfig(targetPath);
119
+ }
120
+
121
+ // Check whether the current package is a workspace root or not
122
+ const data = await fs.readJson(targetPackagePath);
123
+ const workspacePatterns = data.workspaces && data.workspaces.packages;
124
+ if (!workspacePatterns) {
125
+ return getProjectConfig(targetPath);
126
+ }
127
+
128
+ // If the target package is a workspace root, we find all packages in the
129
+ // workspace and load those in as separate jest projects instead.
130
+ const projectPaths = await Promise.all(
131
+ workspacePatterns.map(pattern => glob(path.join(targetPath, pattern))),
132
+ ).then(_ => _.flat());
133
+
134
+ const configs = await Promise.all(
135
+ projectPaths.flat().map(async projectPath => {
136
+ const packagePath = path.resolve(projectPath, 'package.json');
137
+ if (!(await fs.pathExists(packagePath))) {
138
+ return undefined;
139
+ }
140
+
141
+ // We check for the presence of "backstage-cli test" in the package test
142
+ // script to determine whether a given package should be tested
143
+ const packageData = await fs.readJson(packagePath);
144
+ const testScript = packageData.scripts && packageData.scripts.test;
145
+ if (testScript && testScript.includes('backstage-cli test')) {
146
+ return await getProjectConfig(projectPath);
147
+ }
148
+
149
+ return undefined;
150
+ }),
151
+ ).then(cs => cs.filter(Boolean));
152
+
153
+ return {
154
+ rootDir: targetPath,
155
+ projects: configs,
156
+ };
157
+ }
158
+
159
+ module.exports = getRootConfig();
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var packager = require('./packager-798a4821.cjs.js');
3
+ var packager = require('./packager-a538a0d7.cjs.js');
4
4
  require('fs-extra');
5
5
  require('rollup');
6
6
  require('chalk');
7
7
  require('path');
8
- require('./index-71f2ad3d.cjs.js');
8
+ require('./index-b0d38feb.cjs.js');
9
9
  require('commander');
10
10
  require('semver');
11
11
  require('@backstage/cli-common');
@@ -40,4 +40,4 @@ var build = async (cmd) => {
40
40
  };
41
41
 
42
42
  exports.default = build;
43
- //# sourceMappingURL=build-1187deab.cjs.js.map
43
+ //# sourceMappingURL=build-61ca5bd1.cjs.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var packager = require('./packager-798a4821.cjs.js');
3
+ var packager = require('./packager-a538a0d7.cjs.js');
4
4
  require('fs-extra');
5
5
  require('rollup');
6
6
  require('chalk');
7
7
  require('path');
8
- require('./index-71f2ad3d.cjs.js');
8
+ require('./index-b0d38feb.cjs.js');
9
9
  require('commander');
10
10
  require('semver');
11
11
  require('@backstage/cli-common');
@@ -29,4 +29,4 @@ var build = async () => {
29
29
  };
30
30
 
31
31
  exports.default = build;
32
- //# sourceMappingURL=build-8e1b8d41.cjs.js.map
32
+ //# sourceMappingURL=build-71c737ac.cjs.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var packager = require('./packager-798a4821.cjs.js');
3
+ var packager = require('./packager-a538a0d7.cjs.js');
4
4
  require('fs-extra');
5
5
  require('rollup');
6
6
  require('chalk');
7
7
  require('path');
8
- require('./index-71f2ad3d.cjs.js');
8
+ require('./index-b0d38feb.cjs.js');
9
9
  require('commander');
10
10
  require('semver');
11
11
  require('@backstage/cli-common');
@@ -29,4 +29,4 @@ var build = async () => {
29
29
  };
30
30
 
31
31
  exports.default = build;
32
- //# sourceMappingURL=build-39f912ec.cjs.js.map
32
+ //# sourceMappingURL=build-b61079aa.cjs.js.map
@@ -12,17 +12,17 @@ require('@backstage/cli-common');
12
12
  require('terser-webpack-plugin');
13
13
  var parallel = require('./parallel-a4714c72.cjs.js');
14
14
  require('mini-css-extract-plugin');
15
- var index = require('./index-71f2ad3d.cjs.js');
16
- require('./run-ff794585.cjs.js');
15
+ var index = require('./index-b0d38feb.cjs.js');
16
+ require('./run-e50c9fbb.cjs.js');
17
17
  require('lodash/pickBy');
18
18
  var yn = require('yn');
19
19
  var FileSizeReporter = require('react-dev-utils/FileSizeReporter');
20
20
  var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
21
- var paths = require('./paths-abbcf701.cjs.js');
21
+ var paths = require('./paths-38b204ca.cjs.js');
22
22
  var chalk = require('chalk');
23
23
  require('webpack-dev-server');
24
24
  require('react-dev-utils/openBrowser');
25
- var config = require('./config-05bee32f.cjs.js');
25
+ var config = require('./config-f0ca8800.cjs.js');
26
26
  require('commander');
27
27
  require('semver');
28
28
  require('@backstage/config/package.json');
@@ -135,4 +135,4 @@ var build = async (cmd) => {
135
135
  };
136
136
 
137
137
  exports.default = build;
138
- //# sourceMappingURL=build-6e08d7a9.cjs.js.map
138
+ //# sourceMappingURL=build-b73c8aec.cjs.js.map
@@ -3,9 +3,9 @@
3
3
  var chalk = require('chalk');
4
4
  var fs = require('fs-extra');
5
5
  var path = require('path');
6
- var index$1 = require('./index-5985a5a5.cjs.js');
7
- var index = require('./index-71f2ad3d.cjs.js');
8
- var run = require('./run-ff794585.cjs.js');
6
+ var index$1 = require('./index-639c9015.cjs.js');
7
+ var index = require('./index-b0d38feb.cjs.js');
8
+ var run = require('./run-e50c9fbb.cjs.js');
9
9
  var parallel = require('./parallel-a4714c72.cjs.js');
10
10
  require('os');
11
11
  require('tar');
@@ -73,4 +73,4 @@ async function findAppConfigs() {
73
73
  }
74
74
 
75
75
  exports.default = buildImage;
76
- //# sourceMappingURL=buildImage-9a44f994.cjs.js.map
76
+ //# sourceMappingURL=buildImage-66df0236.cjs.js.map
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-5985a5a5.cjs.js');
4
+ var index = require('./index-639c9015.cjs.js');
5
5
  require('path');
6
6
  require('os');
7
7
  require('tar');
8
- require('./index-71f2ad3d.cjs.js');
8
+ require('./index-b0d38feb.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
12
12
  require('@backstage/cli-common');
13
13
  require('@backstage/config/package.json');
14
- require('./run-ff794585.cjs.js');
14
+ require('./run-e50c9fbb.cjs.js');
15
15
  require('child_process');
16
16
  require('util');
17
17
 
@@ -29,4 +29,4 @@ var buildWorkspace = async (dir, _cmd, packages) => {
29
29
  };
30
30
 
31
31
  exports.default = buildWorkspace;
32
- //# sourceMappingURL=buildWorkspace-dd1606e3.cjs.js.map
32
+ //# sourceMappingURL=buildWorkspace-a669db03.cjs.js.map
@@ -4,10 +4,10 @@ var fs = require('fs-extra');
4
4
  var chalk = require('chalk');
5
5
  var semver = require('semver');
6
6
  var path = require('path');
7
- var run = require('./run-ff794585.cjs.js');
8
- var index = require('./index-71f2ad3d.cjs.js');
7
+ var run = require('./run-e50c9fbb.cjs.js');
8
+ var index = require('./index-b0d38feb.cjs.js');
9
9
  var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
10
- var lint = require('./lint-4f87f985.cjs.js');
10
+ var lint = require('./lint-a5758aab.cjs.js');
11
11
  require('child_process');
12
12
  require('util');
13
13
  require('commander');
@@ -243,4 +243,4 @@ async function workerThreads(count, items, fn) {
243
243
  }
244
244
 
245
245
  exports.default = bump;
246
- //# sourceMappingURL=bump-5a872779.cjs.js.map
246
+ //# sourceMappingURL=bump-2c638ffb.cjs.js.map
@@ -4,11 +4,11 @@ var os = require('os');
4
4
  var fs = require('fs-extra');
5
5
  var path = require('path');
6
6
  var tar = require('tar');
7
- var index$1 = require('./index-5985a5a5.cjs.js');
8
- var index = require('./index-71f2ad3d.cjs.js');
7
+ var index$1 = require('./index-639c9015.cjs.js');
8
+ var index = require('./index-b0d38feb.cjs.js');
9
9
  var parallel = require('./parallel-a4714c72.cjs.js');
10
- var packager = require('./packager-798a4821.cjs.js');
11
- require('./run-ff794585.cjs.js');
10
+ var packager = require('./packager-a538a0d7.cjs.js');
11
+ require('./run-e50c9fbb.cjs.js');
12
12
  require('child_process');
13
13
  require('util');
14
14
  require('commander');
@@ -66,4 +66,4 @@ var bundle = async (cmd) => {
66
66
  };
67
67
 
68
68
  exports.default = bundle;
69
- //# sourceMappingURL=bundle-7f5b7937.cjs.js.map
69
+ //# sourceMappingURL=bundle-11249412.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-71f2ad3d.cjs.js');
4
+ var index = require('./index-b0d38feb.cjs.js');
5
5
  require('commander');
6
6
  require('chalk');
7
7
  require('semver');
@@ -19,4 +19,4 @@ async function clean() {
19
19
  }
20
20
 
21
21
  exports.default = clean;
22
- //# sourceMappingURL=clean-8cd75705.cjs.js.map
22
+ //# sourceMappingURL=clean-d2c13478.cjs.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  var configLoader = require('@backstage/config-loader');
4
4
  var config = require('@backstage/config');
5
- var index = require('./index-71f2ad3d.cjs.js');
5
+ var index = require('./index-b0d38feb.cjs.js');
6
6
 
7
7
  async function loadCliConfig(options) {
8
8
  const configPaths = options.args.map((arg) => index.paths.resolveTarget(arg));
@@ -67,4 +67,4 @@ function findPackages(packages, fromPackage) {
67
67
  }
68
68
 
69
69
  exports.loadCliConfig = loadCliConfig;
70
- //# sourceMappingURL=config-05bee32f.cjs.js.map
70
+ //# sourceMappingURL=config-f0ca8800.cjs.js.map
@@ -9,10 +9,10 @@ var path = require('path');
9
9
  var camelCase = require('lodash/camelCase');
10
10
  var upperFirst = require('lodash/upperFirst');
11
11
  var os = require('os');
12
- var tasks = require('./tasks-c92266a9.cjs.js');
13
- var index = require('./index-71f2ad3d.cjs.js');
12
+ var tasks = require('./tasks-cfde6de5.cjs.js');
13
+ var index = require('./index-b0d38feb.cjs.js');
14
14
  var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
15
- require('./run-ff794585.cjs.js');
15
+ require('./run-e50c9fbb.cjs.js');
16
16
  require('handlebars');
17
17
  require('ora');
18
18
  require('recursive-readdir');
@@ -230,4 +230,4 @@ exports.addPluginExtensionToApp = addPluginExtensionToApp;
230
230
  exports.capitalize = capitalize;
231
231
  exports.default = createPlugin;
232
232
  exports.movePlugin = movePlugin;
233
- //# sourceMappingURL=createPlugin-51677cf6.cjs.js.map
233
+ //# sourceMappingURL=createPlugin-3e4b2655.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-71f2ad3d.cjs.js');
4
+ var index = require('./index-b0d38feb.cjs.js');
5
5
  var webpack = require('webpack');
6
- var paths = require('./paths-abbcf701.cjs.js');
6
+ var paths = require('./paths-38b204ca.cjs.js');
7
7
  require('commander');
8
8
  require('chalk');
9
9
  require('semver');
@@ -19,7 +19,7 @@ require('terser-webpack-plugin');
19
19
  require('./parallel-a4714c72.cjs.js');
20
20
  require('mini-css-extract-plugin');
21
21
  require('./svgrTemplate-2d0d15cf.cjs.js');
22
- require('./run-ff794585.cjs.js');
22
+ require('./run-e50c9fbb.cjs.js');
23
23
  require('child_process');
24
24
  require('util');
25
25
  require('lodash/pickBy');
@@ -65,4 +65,4 @@ var dev = async (cmd) => {
65
65
  };
66
66
 
67
67
  exports.default = dev;
68
- //# sourceMappingURL=dev-50371018.cjs.js.map
68
+ //# sourceMappingURL=dev-42d0b115.cjs.js.map
@@ -7,7 +7,7 @@ var path = require('path');
7
7
  var inquirer = require('inquirer');
8
8
  var handlebars = require('handlebars');
9
9
  var recursive = require('recursive-readdir');
10
- var index = require('./index-71f2ad3d.cjs.js');
10
+ var index = require('./index-b0d38feb.cjs.js');
11
11
  require('commander');
12
12
  require('semver');
13
13
  require('@backstage/cli-common');
@@ -62,7 +62,7 @@ class PackageJsonHandler {
62
62
  await this.syncDependencies("dependencies");
63
63
  await this.syncDependencies("devDependencies");
64
64
  }
65
- async syncField(fieldName, obj = this.pkg, targetObj = this.targetPkg, prefix, sort) {
65
+ async syncField(fieldName, obj = this.pkg, targetObj = this.targetPkg, prefix, sort, optional) {
66
66
  const fullFieldName = chalk__default['default'].cyan(prefix ? `${prefix}[${fieldName}]` : fieldName);
67
67
  const newValue = obj[fieldName];
68
68
  const coloredNewValue = chalk__default['default'].cyan(JSON.stringify(newValue));
@@ -80,7 +80,7 @@ class PackageJsonHandler {
80
80
  }
81
81
  await this.write();
82
82
  }
83
- } else if (fieldName in obj) {
83
+ } else if (fieldName in obj && optional !== true) {
84
84
  if (await this.prompt(`package.json is missing field ${fullFieldName}, set to ${coloredNewValue}?`)) {
85
85
  targetObj[fieldName] = newValue;
86
86
  if (sort) {
@@ -156,7 +156,7 @@ class PackageJsonHandler {
156
156
  if (this.variant === "app" && key.startsWith("plugin-")) {
157
157
  continue;
158
158
  }
159
- await this.syncField(key, pkgDeps, targetDeps, fieldName, true);
159
+ await this.syncField(key, pkgDeps, targetDeps, fieldName, true, true);
160
160
  }
161
161
  }
162
162
  async write() {
@@ -373,4 +373,4 @@ async function readPluginData() {
373
373
  }
374
374
 
375
375
  exports.default = diff;
376
- //# sourceMappingURL=diff-035d482a.cjs.js.map
376
+ //# sourceMappingURL=diff-b3b15773.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var configLoader = require('@backstage/config-loader');
4
4
  var openBrowser = require('react-dev-utils/openBrowser');
5
- var config = require('./config-05bee32f.cjs.js');
5
+ var config = require('./config-f0ca8800.cjs.js');
6
6
  require('@backstage/config');
7
- require('./index-71f2ad3d.cjs.js');
7
+ require('./index-b0d38feb.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -28,4 +28,4 @@ var docs = async (cmd) => {
28
28
  };
29
29
 
30
30
  exports.default = docs;
31
- //# sourceMappingURL=docs-fb2423df.cjs.js.map
31
+ //# sourceMappingURL=docs-75bdaacf.cjs.js.map
@@ -4,8 +4,8 @@ var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var os = require('os');
6
6
  var tar = require('tar');
7
- var index = require('./index-71f2ad3d.cjs.js');
8
- var run = require('./run-ff794585.cjs.js');
7
+ var index = require('./index-b0d38feb.cjs.js');
8
+ var run = require('./run-e50c9fbb.cjs.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
@@ -118,4 +118,4 @@ async function findTargetPackages(pkgNames) {
118
118
  }
119
119
 
120
120
  exports.createDistWorkspace = createDistWorkspace;
121
- //# sourceMappingURL=index-5985a5a5.cjs.js.map
121
+ //# sourceMappingURL=index-639c9015.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var fs = require('fs-extra');
4
4
  var chalk = require('chalk');
5
5
  var yaml = require('yaml');
6
- var index$1 = require('./index-71f2ad3d.cjs.js');
6
+ var index$1 = require('./index-b0d38feb.cjs.js');
7
7
  var crypto = require('crypto');
8
8
  var openBrowser = require('react-dev-utils/openBrowser');
9
9
  var request = require('@octokit/request');
@@ -127,4 +127,4 @@ ${yaml.stringify(config)}`;
127
127
  };
128
128
 
129
129
  exports.default = index;
130
- //# sourceMappingURL=index-67ef8ae8.cjs.js.map
130
+ //# sourceMappingURL=index-a8bb12f8.cjs.js.map
@@ -49,17 +49,17 @@ class NotFoundError extends CustomError {
49
49
 
50
50
  const paths = cliCommon.findPaths(__dirname);
51
51
 
52
- var version$8 = "0.9.4";
52
+ var version$8 = "0.9.5";
53
53
 
54
- var version$7 = "0.7.13";
54
+ var version$7 = "0.7.14";
55
55
 
56
- var version$6 = "0.1.14";
56
+ var version$6 = "0.1.15";
57
57
 
58
- var version$5 = "0.5.0";
58
+ var version$5 = "0.6.0";
59
59
 
60
- var version$4 = "0.1.8";
60
+ var version$4 = "0.1.9";
61
61
 
62
- var version$3 = "0.2.10";
62
+ var version$3 = "0.2.11";
63
63
 
64
64
  var version$2 = "0.1.17";
65
65
 
@@ -116,31 +116,32 @@ function registerCommands(program) {
116
116
  (opt, opts) => [...opts, opt],
117
117
  Array()
118
118
  ];
119
- program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option("--lax", "Do not require environment variables to be set").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-6e08d7a9.cjs.js'); }).then((m) => m.default)));
120
- program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-b01584f7.cjs.js'); }).then((m) => m.default)));
121
- program.command("backend:build").description("Build a backend plugin").action(lazy(() => Promise.resolve().then(function () { return require('./build-39f912ec.cjs.js'); }).then((m) => m.default)));
122
- program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-7f5b7937.cjs.js'); }).then((m) => m.default)));
123
- program.command("backend:build-image").allowUnknownOption(true).helpOption(", --backstage-cli-help").option("--build", "Build packages before packing them into the image").description("Bundles the package into a docker image. This command is deprecated and will be removed.").action(lazy(() => Promise.resolve().then(function () { return require('./buildImage-9a44f994.cjs.js'); }).then((m) => m.default)));
124
- program.command("backend:dev").description("Start local development server with HMR for the backend").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-50371018.cjs.js'); }).then((m) => m.default)));
125
- program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-51677cf6.cjs.js'); }).then((m) => m.default)));
126
- program.command("remove-plugin").description("Removes plugin in the current repository").action(lazy(() => Promise.resolve().then(function () { return require('./removePlugin-a1dfa456.cjs.js'); }).then((m) => m.default)));
127
- program.command("plugin:build").description("Build a plugin").action(lazy(() => Promise.resolve().then(function () { return require('./build-8e1b8d41.cjs.js'); }).then((m) => m.default)));
128
- program.command("plugin:serve").description("Serves the dev/ folder of a plugin").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-468158f2.cjs.js'); }).then((m) => m.default)));
129
- program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-035d482a.cjs.js'); }).then((m) => m.default)));
130
- program.command("build").description("Build a package for publishing").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").action(lazy(() => Promise.resolve().then(function () { return require('./build-1187deab.cjs.js'); }).then((m) => m.default)));
131
- program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-afd9e393.cjs.js'); }).then((m) => m.default)));
132
- program.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('./testCommand-adf4b34b.cjs.js'); }).then((m) => m.default)));
133
- program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-fb2423df.cjs.js'); }).then((m) => m.default)));
134
- program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").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("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-b4980b81.cjs.js'); }).then((m) => m.default)));
135
- program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").option("--lax", "Do not require environment variables to be set").option(...configOption).description("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-a49d094d.cjs.js'); }).then((m) => m.default)));
136
- program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-611e21db.cjs.js'); }).then((m) => m.default)));
137
- program.command("versions:bump").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-5a872779.cjs.js'); }).then((m) => m.default)));
138
- program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4f87f985.cjs.js'); }).then((m) => m.default)));
139
- program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-222daa33.cjs.js'); }).then((m) => m.pre)));
140
- program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-222daa33.cjs.js'); }).then((m) => m.post)));
141
- program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8cd75705.cjs.js'); }).then((m) => m.default)));
142
- program.command("build-workspace <workspace-dir> ...<packages>").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-dd1606e3.cjs.js'); }).then((m) => m.default)));
143
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-67ef8ae8.cjs.js'); }).then((m) => m.default)));
119
+ program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option("--lax", "Do not require environment variables to be set").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-b73c8aec.cjs.js'); }).then((m) => m.default)));
120
+ program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-7edb404b.cjs.js'); }).then((m) => m.default)));
121
+ program.command("backend:build").description("Build a backend plugin").action(lazy(() => Promise.resolve().then(function () { return require('./build-b61079aa.cjs.js'); }).then((m) => m.default)));
122
+ program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-11249412.cjs.js'); }).then((m) => m.default)));
123
+ program.command("backend:build-image").allowUnknownOption(true).helpOption(", --backstage-cli-help").option("--build", "Build packages before packing them into the image").description("Bundles the package into a docker image. This command is deprecated and will be removed.").action(lazy(() => Promise.resolve().then(function () { return require('./buildImage-66df0236.cjs.js'); }).then((m) => m.default)));
124
+ program.command("backend:dev").description("Start local development server with HMR for the backend").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-42d0b115.cjs.js'); }).then((m) => m.default)));
125
+ program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-3e4b2655.cjs.js'); }).then((m) => m.default)));
126
+ program.command("remove-plugin").description("Removes plugin in the current repository").action(lazy(() => Promise.resolve().then(function () { return require('./removePlugin-eb1ad78f.cjs.js'); }).then((m) => m.default)));
127
+ program.command("plugin:build").description("Build a plugin").action(lazy(() => Promise.resolve().then(function () { return require('./build-71c737ac.cjs.js'); }).then((m) => m.default)));
128
+ program.command("plugin:serve").description("Serves the dev/ folder of a plugin").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-956c01c6.cjs.js'); }).then((m) => m.default)));
129
+ program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-b3b15773.cjs.js'); }).then((m) => m.default)));
130
+ program.command("build").description("Build a package for publishing").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").action(lazy(() => Promise.resolve().then(function () { return require('./build-61ca5bd1.cjs.js'); }).then((m) => m.default)));
131
+ program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-bda30147.cjs.js'); }).then((m) => m.default)));
132
+ program.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('./testCommand-635a6e22.cjs.js'); }).then((m) => m.default)));
133
+ program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-75bdaacf.cjs.js'); }).then((m) => m.default)));
134
+ program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").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("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-38e80be2.cjs.js'); }).then((m) => m.default)));
135
+ program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").option("--lax", "Do not require environment variables to be set").option(...configOption).description("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-08241b93.cjs.js'); }).then((m) => m.default)));
136
+ program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-c9b6362b.cjs.js'); }).then((m) => m.default)));
137
+ program.command("versions:bump").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-2c638ffb.cjs.js'); }).then((m) => m.default)));
138
+ program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-a5758aab.cjs.js'); }).then((m) => m.default)));
139
+ program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-08aaeb74.cjs.js'); }).then((m) => m.pre)));
140
+ program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-08aaeb74.cjs.js'); }).then((m) => m.post)));
141
+ program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-d2c13478.cjs.js'); }).then((m) => m.default)));
142
+ program.command("build-workspace <workspace-dir> ...<packages>").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-a669db03.cjs.js'); }).then((m) => m.default)));
143
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-a8bb12f8.cjs.js'); }).then((m) => m.default)));
144
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-35e4ffe5.cjs.js'); }).then((m) => m.default)));
144
145
  }
145
146
  function lazy(getActionFunc) {
146
147
  return async (...args) => {
@@ -181,4 +182,5 @@ exports.createPackageVersionProvider = createPackageVersionProvider;
181
182
  exports.packageVersions = packageVersions;
182
183
  exports.paths = paths;
183
184
  exports.version = version;
184
- //# sourceMappingURL=index-71f2ad3d.cjs.js.map
185
+ exports.version$1 = version$7;
186
+ //# sourceMappingURL=index-b0d38feb.cjs.js.map
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-b0d38feb.cjs.js');
4
+ var os = require('os');
5
+ var run = require('./run-e50c9fbb.cjs.js');
6
+ var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
7
+ require('chalk');
8
+ require('commander');
9
+ require('fs-extra');
10
+ require('semver');
11
+ require('@backstage/cli-common');
12
+ require('@backstage/config/package.json');
13
+ require('child_process');
14
+ require('util');
15
+ require('@yarnpkg/lockfile');
16
+
17
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
18
+
19
+ var os__default = /*#__PURE__*/_interopDefaultLegacy(os);
20
+
21
+ var info = async () => {
22
+ await new Promise(async () => {
23
+ const yarnVersion = await run.runPlain("yarn --version");
24
+ const isLocal = require("fs").existsSync(index.paths.resolveOwn("./src"));
25
+ console.log(`OS: ${os__default['default'].type} ${os__default['default'].release} - ${os__default['default'].platform}/${os__default['default'].arch}`);
26
+ console.log(`node: ${process.version}`);
27
+ console.log(`yarn: ${yarnVersion}`);
28
+ console.log(`cli: ${index.version$1} (${isLocal ? "local" : "installed"})`);
29
+ console.log();
30
+ console.log("Dependencies:");
31
+ const lockfilePath = index.paths.resolveTargetRoot("yarn.lock");
32
+ const lockfile = await Lockfile.Lockfile.load(lockfilePath);
33
+ const deps = [...lockfile.keys()].filter((n) => n.startsWith("@backstage/"));
34
+ const maxLength = Math.max(...deps.map((d) => d.length));
35
+ for (const dep of deps) {
36
+ const versions = new Set(lockfile.get(dep).map((i) => i.version));
37
+ console.log(` ${dep.padEnd(maxLength)} ${[...versions].join(", ")}`);
38
+ }
39
+ });
40
+ };
41
+
42
+ exports.default = info;
43
+ //# sourceMappingURL=info-35e4ffe5.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
4
- require('./run-ff794585.cjs.js');
4
+ require('./run-e50c9fbb.cjs.js');
5
5
  require('chalk');
6
- var index = require('./index-71f2ad3d.cjs.js');
6
+ var index = require('./index-b0d38feb.cjs.js');
7
7
  var partition = require('lodash/partition');
8
8
  require('fs-extra');
9
9
  require('semver');
@@ -73,4 +73,4 @@ function logArray(arr, header, each) {
73
73
  exports.default = lint;
74
74
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
75
75
  exports.includedFilter = includedFilter;
76
- //# sourceMappingURL=lint-4f87f985.cjs.js.map
76
+ //# sourceMappingURL=lint-a5758aab.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var run = require('./run-ff794585.cjs.js');
4
- var index = require('./index-71f2ad3d.cjs.js');
3
+ var run = require('./run-e50c9fbb.cjs.js');
4
+ var index = require('./index-b0d38feb.cjs.js');
5
5
  require('child_process');
6
6
  require('util');
7
7
  require('commander');
@@ -25,4 +25,4 @@ var lint = async (cmd, cmdArgs) => {
25
25
  };
26
26
 
27
27
  exports.default = lint;
28
- //# sourceMappingURL=lint-afd9e393.cjs.js.map
28
+ //# sourceMappingURL=lint-bda30147.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-71f2ad3d.cjs.js');
4
+ var index = require('./index-b0d38feb.cjs.js');
5
5
  require('commander');
6
6
  require('chalk');
7
7
  require('semver');
@@ -38,4 +38,4 @@ const post = async () => {
38
38
 
39
39
  exports.post = post;
40
40
  exports.pre = pre;
41
- //# sourceMappingURL=pack-222daa33.cjs.js.map
41
+ //# sourceMappingURL=pack-08aaeb74.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var rollup = require('rollup');
5
5
  var chalk = require('chalk');
6
6
  var path = require('path');
7
- var index = require('./index-71f2ad3d.cjs.js');
7
+ var index = require('./index-b0d38feb.cjs.js');
8
8
  var peerDepsExternal = require('rollup-plugin-peer-deps-external');
9
9
  var commonjs = require('@rollup/plugin-commonjs');
10
10
  var resolve = require('@rollup/plugin-node-resolve');
@@ -254,4 +254,4 @@ const buildPackage = async (options) => {
254
254
  };
255
255
 
256
256
  exports.buildPackage = buildPackage;
257
- //# sourceMappingURL=packager-798a4821.cjs.js.map
257
+ //# sourceMappingURL=packager-a538a0d7.cjs.js.map
@@ -13,8 +13,8 @@ var TerserPlugin = require('terser-webpack-plugin');
13
13
  var parallel = require('./parallel-a4714c72.cjs.js');
14
14
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
15
15
  var svgrTemplate = require('./svgrTemplate-2d0d15cf.cjs.js');
16
- var index = require('./index-71f2ad3d.cjs.js');
17
- var run = require('./run-ff794585.cjs.js');
16
+ var index = require('./index-b0d38feb.cjs.js');
17
+ var run = require('./run-e50c9fbb.cjs.js');
18
18
  var pickBy = require('lodash/pickBy');
19
19
 
20
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -489,4 +489,4 @@ exports.createBackendConfig = createBackendConfig;
489
489
  exports.createConfig = createConfig;
490
490
  exports.resolveBaseUrl = resolveBaseUrl;
491
491
  exports.resolveBundlingPaths = resolveBundlingPaths;
492
- //# sourceMappingURL=paths-abbcf701.cjs.js.map
492
+ //# sourceMappingURL=paths-38b204ca.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var yaml = require('yaml');
4
4
  var config$1 = require('@backstage/config');
5
- var config = require('./config-05bee32f.cjs.js');
5
+ var config = require('./config-f0ca8800.cjs.js');
6
6
  require('@backstage/config-loader');
7
- require('./index-71f2ad3d.cjs.js');
7
+ require('./index-b0d38feb.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -55,4 +55,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
55
55
  }
56
56
 
57
57
  exports.default = print;
58
- //# sourceMappingURL=print-b4980b81.cjs.js.map
58
+ //# sourceMappingURL=print-38e80be2.cjs.js.map
@@ -4,8 +4,8 @@ var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var chalk = require('chalk');
6
6
  var inquirer = require('inquirer');
7
- var tasks = require('./tasks-c92266a9.cjs.js');
8
- var index = require('./index-71f2ad3d.cjs.js');
7
+ var tasks = require('./tasks-cfde6de5.cjs.js');
8
+ var index = require('./index-b0d38feb.cjs.js');
9
9
  require('handlebars');
10
10
  require('ora');
11
11
  require('recursive-readdir');
@@ -161,4 +161,4 @@ exports.removePluginFromCodeOwners = removePluginFromCodeOwners;
161
161
  exports.removeReferencesFromAppPackage = removeReferencesFromAppPackage;
162
162
  exports.removeReferencesFromPluginsFile = removeReferencesFromPluginsFile;
163
163
  exports.removeSymLink = removeSymLink;
164
- //# sourceMappingURL=removePlugin-a1dfa456.cjs.js.map
164
+ //# sourceMappingURL=removePlugin-eb1ad78f.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var child_process = require('child_process');
4
- var index = require('./index-71f2ad3d.cjs.js');
4
+ var index = require('./index-b0d38feb.cjs.js');
5
5
  var util = require('util');
6
6
 
7
7
  const execFile = util.promisify(child_process.execFile);
@@ -73,4 +73,4 @@ async function waitForExit(child, name) {
73
73
  exports.run = run;
74
74
  exports.runCheck = runCheck;
75
75
  exports.runPlain = runPlain;
76
- //# sourceMappingURL=run-ff794585.cjs.js.map
76
+ //# sourceMappingURL=run-e50c9fbb.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var yaml = require('yaml');
4
- var config = require('./config-05bee32f.cjs.js');
4
+ var config = require('./config-f0ca8800.cjs.js');
5
5
  var configLoader = require('@backstage/config-loader');
6
6
  require('@backstage/config');
7
- require('./index-71f2ad3d.cjs.js');
7
+ require('./index-b0d38feb.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -31,4 +31,4 @@ var schema = async (cmd) => {
31
31
  };
32
32
 
33
33
  exports.default = schema;
34
- //# sourceMappingURL=schema-611e21db.cjs.js.map
34
+ //# sourceMappingURL=schema-c9b6362b.cjs.js.map
@@ -13,16 +13,16 @@ require('webpack-node-externals');
13
13
  require('@backstage/cli-common');
14
14
  require('terser-webpack-plugin');
15
15
  require('mini-css-extract-plugin');
16
- var index = require('./index-71f2ad3d.cjs.js');
17
- require('./run-ff794585.cjs.js');
16
+ var index = require('./index-b0d38feb.cjs.js');
17
+ require('./run-e50c9fbb.cjs.js');
18
18
  require('lodash/pickBy');
19
19
  require('yn');
20
20
  require('react-dev-utils/FileSizeReporter');
21
21
  require('react-dev-utils/formatWebpackMessages');
22
- var server = require('./server-f837273a.cjs.js');
23
- var config = require('./config-05bee32f.cjs.js');
22
+ var server = require('./server-7a3f6d5a.cjs.js');
23
+ var config = require('./config-f0ca8800.cjs.js');
24
24
  var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
25
- var lint = require('./lint-4f87f985.cjs.js');
25
+ var lint = require('./lint-a5758aab.cjs.js');
26
26
  require('commander');
27
27
  require('semver');
28
28
  require('@backstage/config/package.json');
@@ -30,7 +30,7 @@ require('child_process');
30
30
  require('util');
31
31
  require('webpack-dev-server');
32
32
  require('react-dev-utils/openBrowser');
33
- require('./paths-abbcf701.cjs.js');
33
+ require('./paths-38b204ca.cjs.js');
34
34
  require('./parallel-a4714c72.cjs.js');
35
35
  require('./svgrTemplate-2d0d15cf.cjs.js');
36
36
  require('@backstage/config-loader');
@@ -74,4 +74,4 @@ var serve = async (cmd) => {
74
74
  };
75
75
 
76
76
  exports.default = serve;
77
- //# sourceMappingURL=serve-b01584f7.cjs.js.map
77
+ //# sourceMappingURL=serve-7edb404b.cjs.js.map
@@ -11,15 +11,15 @@ require('webpack-node-externals');
11
11
  require('@backstage/cli-common');
12
12
  require('terser-webpack-plugin');
13
13
  require('mini-css-extract-plugin');
14
- var index = require('./index-71f2ad3d.cjs.js');
15
- require('./run-ff794585.cjs.js');
14
+ var index = require('./index-b0d38feb.cjs.js');
15
+ require('./run-e50c9fbb.cjs.js');
16
16
  require('lodash/pickBy');
17
17
  require('yn');
18
18
  require('react-dev-utils/FileSizeReporter');
19
19
  require('react-dev-utils/formatWebpackMessages');
20
20
  require('chalk');
21
- var server = require('./server-f837273a.cjs.js');
22
- var config = require('./config-05bee32f.cjs.js');
21
+ var server = require('./server-7a3f6d5a.cjs.js');
22
+ var config = require('./config-f0ca8800.cjs.js');
23
23
  require('commander');
24
24
  require('semver');
25
25
  require('@backstage/config/package.json');
@@ -27,7 +27,7 @@ require('child_process');
27
27
  require('util');
28
28
  require('webpack-dev-server');
29
29
  require('react-dev-utils/openBrowser');
30
- require('./paths-abbcf701.cjs.js');
30
+ require('./paths-38b204ca.cjs.js');
31
31
  require('./parallel-a4714c72.cjs.js');
32
32
  require('./svgrTemplate-2d0d15cf.cjs.js');
33
33
  require('@backstage/config-loader');
@@ -52,4 +52,4 @@ var serve = async (cmd) => {
52
52
  };
53
53
 
54
54
  exports.default = serve;
55
- //# sourceMappingURL=serve-468158f2.cjs.js.map
55
+ //# sourceMappingURL=serve-956c01c6.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var webpack = require('webpack');
5
5
  var WebpackDevServer = require('webpack-dev-server');
6
6
  var openBrowser = require('react-dev-utils/openBrowser');
7
- var paths = require('./paths-abbcf701.cjs.js');
7
+ var paths = require('./paths-38b204ca.cjs.js');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
@@ -70,4 +70,4 @@ async function serveBundle(options) {
70
70
  }
71
71
 
72
72
  exports.serveBundle = serveBundle;
73
- //# sourceMappingURL=server-f837273a.cjs.js.map
73
+ //# sourceMappingURL=server-7a3f6d5a.cjs.js.map
@@ -6,7 +6,7 @@ var chalk = require('chalk');
6
6
  var handlebars = require('handlebars');
7
7
  var ora = require('ora');
8
8
  var recursive = require('recursive-readdir');
9
- var index = require('./index-71f2ad3d.cjs.js');
9
+ var index = require('./index-b0d38feb.cjs.js');
10
10
 
11
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
12
 
@@ -158,4 +158,4 @@ exports.addCodeownersEntry = addCodeownersEntry;
158
158
  exports.getCodeownersFilePath = getCodeownersFilePath;
159
159
  exports.parseOwnerIds = parseOwnerIds;
160
160
  exports.templatingTask = templatingTask;
161
- //# sourceMappingURL=tasks-c92266a9.cjs.js.map
161
+ //# sourceMappingURL=tasks-cfde6de5.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-71f2ad3d.cjs.js');
4
- var run = require('./run-ff794585.cjs.js');
3
+ var index = require('./index-b0d38feb.cjs.js');
4
+ var run = require('./run-e50c9fbb.cjs.js');
5
5
  require('commander');
6
6
  require('chalk');
7
7
  require('fs-extra');
@@ -44,4 +44,4 @@ var testCommand = async (cmd) => {
44
44
  };
45
45
 
46
46
  exports.default = testCommand;
47
- //# sourceMappingURL=testCommand-adf4b34b.cjs.js.map
47
+ //# sourceMappingURL=testCommand-635a6e22.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var config = require('./config-05bee32f.cjs.js');
3
+ var config = require('./config-f0ca8800.cjs.js');
4
4
  require('@backstage/config-loader');
5
5
  require('@backstage/config');
6
- require('./index-71f2ad3d.cjs.js');
6
+ require('./index-b0d38feb.cjs.js');
7
7
  require('commander');
8
8
  require('chalk');
9
9
  require('fs-extra');
@@ -20,4 +20,4 @@ var validate = async (cmd) => {
20
20
  };
21
21
 
22
22
  exports.default = validate;
23
- //# sourceMappingURL=validate-a49d094d.cjs.js.map
23
+ //# sourceMappingURL=validate-08241b93.cjs.js.map
package/dist/index.cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('commander');
4
4
  require('chalk');
5
- require('./cjs/index-71f2ad3d.cjs.js');
5
+ require('./cjs/index-b0d38feb.cjs.js');
6
6
  require('fs-extra');
7
7
  require('semver');
8
8
  require('@backstage/cli-common');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/cli",
3
3
  "description": "CLI for developing Backstage plugins and apps",
4
- "version": "0.0.0-nightly-202182821947",
4
+ "version": "0.0.0-nightly-20219422538",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -32,7 +32,7 @@
32
32
  "@babel/plugin-transform-modules-commonjs": "^7.4.4",
33
33
  "@backstage/cli-common": "^0.1.3",
34
34
  "@backstage/config": "^0.1.10",
35
- "@backstage/config-loader": "^0.0.0-nightly-202182821947",
35
+ "@backstage/config-loader": "^0.0.0-nightly-20219422538",
36
36
  "@hot-loader/react-dom": "^16.13.0",
37
37
  "@lerna/package-graph": "^4.0.0",
38
38
  "@lerna/project": "^4.0.0",
@@ -76,6 +76,7 @@
76
76
  "express": "^4.17.1",
77
77
  "fork-ts-checker-webpack-plugin": "^4.0.5",
78
78
  "fs-extra": "9.1.0",
79
+ "glob": "^7.1.7",
79
80
  "handlebars": "^4.7.3",
80
81
  "html-webpack-plugin": "^5.3.1",
81
82
  "inquirer": "^7.0.4",
@@ -117,12 +118,12 @@
117
118
  "yn": "^4.0.0"
118
119
  },
119
120
  "devDependencies": {
120
- "@backstage/backend-common": "^0.0.0-nightly-202182821947",
121
+ "@backstage/backend-common": "^0.9.5",
121
122
  "@backstage/config": "^0.1.10",
122
- "@backstage/core-components": "^0.0.0-nightly-202182821947",
123
- "@backstage/core-plugin-api": "^0.1.8",
124
- "@backstage/core-app-api": "^0.1.14",
125
- "@backstage/dev-utils": "^0.2.10",
123
+ "@backstage/core-components": "^0.6.0",
124
+ "@backstage/core-plugin-api": "^0.1.9",
125
+ "@backstage/core-app-api": "^0.0.0-nightly-20219422538",
126
+ "@backstage/dev-utils": "^0.2.11",
126
127
  "@backstage/test-utils": "^0.1.17",
127
128
  "@backstage/theme": "^0.2.10",
128
129
  "@types/diff": "^5.0.0",