@forge/cli 11.1.0 → 11.2.0-next.17-experimental-26b1489

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 (29) hide show
  1. package/CHANGELOG.md +231 -0
  2. package/npm-shrinkwrap.json +61 -162
  3. package/out/bin/cli.d.ts.map +1 -1
  4. package/out/bin/cli.js +8 -0
  5. package/out/command-line/command.d.ts +6 -5
  6. package/out/command-line/command.d.ts.map +1 -1
  7. package/out/command-line/command.js +24 -10
  8. package/out/command-line/controller/install-controller.d.ts.map +1 -1
  9. package/out/command-line/controller/install-controller.js +8 -3
  10. package/out/command-line/dependency-injection.d.ts +1 -2
  11. package/out/command-line/dependency-injection.d.ts.map +1 -1
  12. package/out/command-line/dependency-injection.js +3 -5
  13. package/out/command-line/register-app-commands.d.ts.map +1 -1
  14. package/out/command-line/register-app-commands.js +6 -9
  15. package/out/command-line/uninstall-command-helpers.d.ts +2 -2
  16. package/out/command-line/uninstall-command-helpers.d.ts.map +1 -1
  17. package/out/command-line/uninstall-command-helpers.js +8 -8
  18. package/out/deploy/deployer/deployer.d.ts +6 -1
  19. package/out/deploy/deployer/deployer.d.ts.map +1 -1
  20. package/out/deploy/deployer/deployer.js +21 -7
  21. package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts +9 -2
  22. package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts.map +1 -1
  23. package/out/deploy/deployer/trigger-deploy-graphql-client.js +1 -1
  24. package/out/deploy/packager/runtime-bundler.d.ts +3 -3
  25. package/out/deploy/packager/runtime-bundler.d.ts.map +1 -1
  26. package/out/deploy/packager/runtime-bundler.js +5 -4
  27. package/out/installations/installation-helper.d.ts.map +1 -1
  28. package/out/installations/installation-helper.js +3 -2
  29. package/package.json +10 -9
@@ -12,13 +12,13 @@ class RuntimeBundler {
12
12
  logger;
13
13
  bundler;
14
14
  fileSystemReader;
15
- configFile;
16
- constructor(archiverFactory, logger, bundler, fileSystemReader, configFile) {
15
+ configReader;
16
+ constructor(archiverFactory, logger, bundler, fileSystemReader, configReader) {
17
17
  this.archiverFactory = archiverFactory;
18
18
  this.logger = logger;
19
19
  this.bundler = bundler;
20
20
  this.fileSystemReader = fileSystemReader;
21
- this.configFile = configFile;
21
+ this.configReader = configReader;
22
22
  }
23
23
  async packageCode(archiver, entryPoints) {
24
24
  const moduleList = [];
@@ -44,7 +44,8 @@ class RuntimeBundler {
44
44
  return moduleList;
45
45
  }
46
46
  async packageDependencies(archiver) {
47
- archiver.addFile(cli_shared_1.manifestFileName, Buffer.from(this.configFile.readConfigAsString()));
47
+ const manifest = JSON.stringify(await this.configReader.readConfig());
48
+ archiver.addFile(cli_shared_1.manifestFileName, Buffer.from(manifest));
48
49
  for (const fileName of cli_shared_1.dependencyFileNames) {
49
50
  if (!this.fileSystemReader.fileExists(fileName)) {
50
51
  continue;
@@ -1 +1 @@
1
- {"version":3,"file":"installation-helper.d.ts","sourceRoot":"","sources":["../../src/installations/installation-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAiD,EAAE,EAAmB,MAAM,mBAAmB,CAAC;AAEvG,wBAAgB,sBAAsB,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED,wBAAsB,wBAAwB,CAC5C,EAAE,EAAE,EAAE,EACN,aAAa,EAAE,YAAY,EAAE,EAC7B,uBAAuB,EAAE,MAAM,EAC/B,yBAAyB,EAAE,MAAM,GAChC,OAAO,CAAC,YAAY,CAAC,CAkBvB"}
1
+ {"version":3,"file":"installation-helper.d.ts","sourceRoot":"","sources":["../../src/installations/installation-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAkD,EAAE,EAAmB,MAAM,mBAAmB,CAAC;AAExG,wBAAgB,sBAAsB,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED,wBAAsB,wBAAwB,CAC5C,EAAE,EAAE,EAAE,EACN,aAAa,EAAE,YAAY,EAAE,EAC7B,uBAAuB,EAAE,MAAM,EAC/B,yBAAyB,EAAE,MAAM,GAChC,OAAO,CAAC,YAAY,CAAC,CAoBvB"}
@@ -15,11 +15,12 @@ function validateInstallationId(installationId) {
15
15
  }
16
16
  exports.validateInstallationId = validateInstallationId;
17
17
  async function selectSingleInstallation(ui, installations, installationTablePrompt, installationTableOverview) {
18
- const installationIndex = await ui.promptForSingleChoiceTable(installationTablePrompt, installationTableOverview, ['Environment', 'Site', 'Product', 'Major Version'], installations.map(({ id, environmentKey, product, site, version }) => ({
18
+ const hasSecondaryInstallations = installations.some(({ secondaryProducts }) => secondaryProducts?.length);
19
+ const installationIndex = await ui.promptForSingleChoiceTable(installationTablePrompt, installationTableOverview, ['Environment', 'Site', hasSecondaryInstallations ? 'Product(s)' : 'Product', 'Major Version'], installations.map(({ id, environmentKey, product, secondaryProducts, site, version }) => ({
19
20
  names: [
20
21
  (0, cli_shared_1.environmentToOption)(environmentKey),
21
22
  site,
22
- (0, cli_shared_1.productDisplayName)(product),
23
+ (0, cli_shared_1.productsDisplayName)(product, secondaryProducts),
23
24
  `${(0, semver_1.major)(version.version).toString()} ${cli_shared_1.Text.install.booleanToScope(version.isLatest)}`
24
25
  ],
25
26
  value: id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "11.1.0",
3
+ "version": "11.2.0-next.17-experimental-26b1489",
4
4
  "description": "A command line interface for managing Atlassian-hosted apps",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -18,13 +18,13 @@
18
18
  "postinstall": "node -e \"fs.existsSync('./out/bin/postinstall.js') && require('./out/bin/postinstall.js')\""
19
19
  },
20
20
  "dependencies": {
21
- "@forge/bundler": "4.20.9",
22
- "@forge/cli-shared": "6.6.1",
21
+ "@forge/bundler": "4.21.0-next.13-experimental-26b1489",
22
+ "@forge/cli-shared": "6.7.0-next.11-experimental-26b1489",
23
23
  "@forge/egress": "1.4.0",
24
- "@forge/lint": "5.7.1",
25
- "@forge/manifest": "8.7.0",
26
- "@forge/runtime": "5.10.6",
27
- "@forge/tunnel": "5.9.3",
24
+ "@forge/lint": "5.7.2-next.11-experimental-26b1489",
25
+ "@forge/manifest": "8.8.0-next.5-experimental-26b1489",
26
+ "@forge/runtime": "5.10.7-next.0-experimental-26b1489",
27
+ "@forge/tunnel": "5.10.0-next.13-experimental-26b1489",
28
28
  "@forge/util": "1.4.8",
29
29
  "@sentry/node": "7.106.0",
30
30
  "@forge/i18n": "0.0.4",
@@ -56,7 +56,8 @@
56
56
  "semver": "^7.6.0",
57
57
  "tmp": "^0.2.3",
58
58
  "tslib": "^2.6.2",
59
- "uuid": "^9.0.1"
59
+ "uuid": "^9.0.1",
60
+ "v8-compile-cache": "^2.4.0"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@types/archiver": "^6.0.2",
@@ -86,7 +87,7 @@
86
87
  "type-fest": "4.10.2"
87
88
  },
88
89
  "engines": {
89
- "node": ">=12.13.1"
90
+ "node": ">=18.20.7"
90
91
  },
91
92
  "publishConfig": {
92
93
  "registry": "https://packages.atlassian.com/api/npm/npm-public/"