@webiny/cli-aws 0.0.0-unstable.0d717d18dd → 0.0.0-unstable.eb81deee7e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin.js CHANGED
@@ -2,13 +2,15 @@
2
2
  import "tsx/esm";
3
3
  import "@webiny/cli-core/utils/suppressPunycodeWarnings.js";
4
4
  import { Cli } from "@webiny/cli-core";
5
- import { ensureSameWebinyPackageVersions } from "@webiny/cli-core/utils/ensureSameWebinyPackageVersions.js";
5
+ import { ensureSameWebinyPackageVersions } from "@webiny/cli-core/utils/ensureSameWebinyPackageVersions/index.js";
6
6
  import { registerAwsFeatures } from "./index.js";
7
7
  import { ensureSystemRequirements } from "@webiny/system-requirements";
8
+ import { startTrace, trace, traceAsync } from "@webiny/project/utils/trace/index.js";
9
+ startTrace("Webiny CLI (aws)");
8
10
  process.env.WEBINY_HOSTING_TYPE = "aws";
9
- ensureSystemRequirements();
10
- ensureSameWebinyPackageVersions();
11
- const cli = await Cli.init({}, registerAwsFeatures);
12
- await cli.run();
11
+ trace("check system requirements", ()=>ensureSystemRequirements());
12
+ trace("check @webiny package versions", ()=>ensureSameWebinyPackageVersions());
13
+ const cli = await traceAsync("initialize CLI", ()=>Cli.init({}, registerAwsFeatures));
14
+ await traceAsync("run command", ()=>cli.run());
13
15
 
14
16
  //# sourceMappingURL=bin.js.map
package/bin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.js","sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\nimport \"tsx/esm\";\n\n// Suppress punycode warnings. This is a known issue we can't fix.\nimport \"@webiny/cli-core/utils/suppressPunycodeWarnings.js\";\n\nimport { Cli } from \"@webiny/cli-core\";\nimport { ensureSameWebinyPackageVersions } from \"@webiny/cli-core/utils/ensureSameWebinyPackageVersions.js\";\nimport { registerAwsFeatures } from \"./index.js\";\nimport { ensureSystemRequirements } from \"@webiny/system-requirements\";\n\n// Hosting-type marker — lets webiny.config.tsx branch on which CLI is running (e.g. Cognito for AWS,\n// SelfHostedAuth + Admin.ApiUrl for server). Read at build/watch time when the config is evaluated.\nprocess.env.WEBINY_HOSTING_TYPE = \"aws\";\n\n// Ensure system requirements are met.\nensureSystemRequirements();\n\n// Ensure all @webiny/* packages use the same version.\nensureSameWebinyPackageVersions();\n\nconst cli = await Cli.init({}, registerAwsFeatures);\n\nawait cli.run();\n"],"names":["process","ensureSystemRequirements","ensureSameWebinyPackageVersions","cli","Cli","registerAwsFeatures"],"mappings":";;;;;;;AAaAA,QAAQ,GAAG,CAAC,mBAAmB,GAAG;AAGlCC;AAGAC;AAEA,MAAMC,MAAM,MAAMC,IAAI,IAAI,CAAC,CAAC,GAAGC;AAE/B,MAAMF,IAAI,GAAG"}
1
+ {"version":3,"file":"bin.js","sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\nimport \"tsx/esm\";\n\n// Suppress punycode warnings. This is a known issue we can't fix.\nimport \"@webiny/cli-core/utils/suppressPunycodeWarnings.js\";\n\nimport { Cli } from \"@webiny/cli-core\";\nimport { ensureSameWebinyPackageVersions } from \"@webiny/cli-core/utils/ensureSameWebinyPackageVersions/index.js\";\nimport { registerAwsFeatures } from \"./index.js\";\nimport { ensureSystemRequirements } from \"@webiny/system-requirements\";\nimport { startTrace } from \"@webiny/project/utils/trace/index.js\";\nimport { trace } from \"@webiny/project/utils/trace/index.js\";\nimport { traceAsync } from \"@webiny/project/utils/trace/index.js\";\n\n// Time the run when `--trace` or `WEBINY_CLI_TRACE=1` is used. Must be the first statement, so that\n// the time spent loading the imports above is attributed.\nstartTrace(\"Webiny CLI (aws)\");\n\n// Hosting-type marker — lets webiny.config.tsx branch on which CLI is running (e.g. Cognito for AWS,\n// SelfHostedAuth + Admin.ApiUrl for server). Read at build/watch time when the config is evaluated.\nprocess.env.WEBINY_HOSTING_TYPE = \"aws\";\n\n// Ensure system requirements are met.\ntrace(\"check system requirements\", () => ensureSystemRequirements());\n\n// Ensure all @webiny/* packages use the same version.\ntrace(\"check @webiny package versions\", () => ensureSameWebinyPackageVersions());\n\nconst cli = await traceAsync(\"initialize CLI\", () => Cli.init({}, registerAwsFeatures));\n\nawait traceAsync(\"run command\", () => cli.run());\n"],"names":["startTrace","process","trace","ensureSystemRequirements","ensureSameWebinyPackageVersions","cli","traceAsync","Cli","registerAwsFeatures"],"mappings":";;;;;;;;AAgBAA,WAAW;AAIXC,QAAQ,GAAG,CAAC,mBAAmB,GAAG;AAGlCC,MAAM,6BAA6B,IAAMC;AAGzCD,MAAM,kCAAkC,IAAME;AAE9C,MAAMC,MAAM,MAAMC,WAAW,kBAAkB,IAAMC,IAAI,IAAI,CAAC,CAAC,GAAGC;AAElE,MAAMF,WAAW,eAAe,IAAMD,IAAI,GAAG"}
@@ -1,6 +1,5 @@
1
1
  import { measureDuration } from "@webiny/cli-core/features/utils/index.js";
2
2
  import { BaseDeployOutput } from "./BaseDeployOutput.js";
3
- import { PulumiError } from "@webiny/pulumi-sdk";
4
3
  class WithDeploymentLogsDeployOutput extends BaseDeployOutput {
5
4
  async output() {
6
5
  const deployProcess = this.deployProcess;
@@ -19,6 +18,7 @@ class WithDeploymentLogsDeployOutput extends BaseDeployOutput {
19
18
  if (isPreview) ui.success(`Preview completed in ${getDeploymentDuration()}.`);
20
19
  else ui.success(`Deployed in ${getDeploymentDuration()}.`);
21
20
  } catch (e) {
21
+ const { PulumiError } = await import("@webiny/pulumi-sdk");
22
22
  e instanceof PulumiError || ui.text(e.message);
23
23
  if (isPreview) ui.error("Preview failed, please check the details above.");
24
24
  else ui.error("Deployment failed, please check the details above.");
@@ -1 +1 @@
1
- {"version":3,"file":"features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js","sources":["../../../../src/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.ts"],"sourcesContent":["import { measureDuration } from \"@webiny/cli-core/features/utils/index.js\";\nimport { BaseDeployOutput } from \"./BaseDeployOutput.js\";\nimport { PulumiError } from \"@webiny/pulumi-sdk\";\n\nexport class WithDeploymentLogsDeployOutput extends BaseDeployOutput {\n public override async output() {\n const deployProcess = this.deployProcess;\n const ui = this.ui;\n const stdio = this.stdio;\n const params = this.deployParams;\n\n const isPreview = !!params.preview;\n\n const getDeploymentDuration = measureDuration();\n\n try {\n if (isPreview) {\n ui.info(`Previewing deployment for %s app...`, params.app);\n } else {\n ui.info(`Deploying %s app...`, params.app);\n }\n\n ui.emptyLine();\n\n this.deployProcess.stdout!.pipe(stdio.getStdout());\n this.deployProcess.stderr!.pipe(stdio.getStderr());\n await deployProcess;\n\n if (isPreview) {\n ui.success(`Preview completed in ${getDeploymentDuration()}.`);\n } else {\n ui.success(`Deployed in ${getDeploymentDuration()}.`);\n }\n } catch (e) {\n if (e instanceof PulumiError) {\n // Pulumi already printed the error.\n } else {\n ui.text(e.message);\n }\n\n if (isPreview) {\n ui.error(\"Preview failed, please check the details above.\");\n } else {\n ui.error(\"Deployment failed, please check the details above.\");\n }\n\n throw e;\n }\n }\n}\n"],"names":["WithDeploymentLogsDeployOutput","BaseDeployOutput","deployProcess","ui","stdio","params","isPreview","getDeploymentDuration","measureDuration","e","PulumiError"],"mappings":";;;AAIO,MAAMA,uCAAuCC;IAChD,MAAsB,SAAS;QAC3B,MAAMC,gBAAgB,IAAI,CAAC,aAAa;QACxC,MAAMC,KAAK,IAAI,CAAC,EAAE;QAClB,MAAMC,QAAQ,IAAI,CAAC,KAAK;QACxB,MAAMC,SAAS,IAAI,CAAC,YAAY;QAEhC,MAAMC,YAAY,CAAC,CAACD,OAAO,OAAO;QAElC,MAAME,wBAAwBC;QAE9B,IAAI;YACA,IAAIF,WACAH,GAAG,IAAI,CAAC,uCAAuCE,OAAO,GAAG;iBAEzDF,GAAG,IAAI,CAAC,uBAAuBE,OAAO,GAAG;YAG7CF,GAAG,SAAS;YAEZ,IAAI,CAAC,aAAa,CAAC,MAAM,CAAE,IAAI,CAACC,MAAM,SAAS;YAC/C,IAAI,CAAC,aAAa,CAAC,MAAM,CAAE,IAAI,CAACA,MAAM,SAAS;YAC/C,MAAMF;YAEN,IAAII,WACAH,GAAG,OAAO,CAAC,CAAC,qBAAqB,EAAEI,wBAAwB,CAAC,CAAC;iBAE7DJ,GAAG,OAAO,CAAC,CAAC,YAAY,EAAEI,wBAAwB,CAAC,CAAC;QAE5D,EAAE,OAAOE,GAAG;YACJA,aAAaC,eAGbP,GAAG,IAAI,CAACM,EAAE,OAAO;YAGrB,IAAIH,WACAH,GAAG,KAAK,CAAC;iBAETA,GAAG,KAAK,CAAC;YAGb,MAAMM;QACV;IACJ;AACJ"}
1
+ {"version":3,"file":"features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js","sources":["../../../../src/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.ts"],"sourcesContent":["import { measureDuration } from \"@webiny/cli-core/features/utils/index.js\";\nimport { BaseDeployOutput } from \"./BaseDeployOutput.js\";\n\nexport class WithDeploymentLogsDeployOutput extends BaseDeployOutput {\n public override async output() {\n const deployProcess = this.deployProcess;\n const ui = this.ui;\n const stdio = this.stdio;\n const params = this.deployParams;\n\n const isPreview = !!params.preview;\n\n const getDeploymentDuration = measureDuration();\n\n try {\n if (isPreview) {\n ui.info(`Previewing deployment for %s app...`, params.app);\n } else {\n ui.info(`Deploying %s app...`, params.app);\n }\n\n ui.emptyLine();\n\n this.deployProcess.stdout!.pipe(stdio.getStdout());\n this.deployProcess.stderr!.pipe(stdio.getStderr());\n await deployProcess;\n\n if (isPreview) {\n ui.success(`Preview completed in ${getDeploymentDuration()}.`);\n } else {\n ui.success(`Deployed in ${getDeploymentDuration()}.`);\n }\n } catch (e) {\n // Imported here so that loading the deploy command doesn't load the Pulumi SDK. By\n // the time a deployment fails, the SDK is loaded anyway, since it started the process.\n const { PulumiError } = await import(\"@webiny/pulumi-sdk\");\n if (e instanceof PulumiError) {\n // Pulumi already printed the error.\n } else {\n ui.text(e.message);\n }\n\n if (isPreview) {\n ui.error(\"Preview failed, please check the details above.\");\n } else {\n ui.error(\"Deployment failed, please check the details above.\");\n }\n\n throw e;\n }\n }\n}\n"],"names":["WithDeploymentLogsDeployOutput","BaseDeployOutput","deployProcess","ui","stdio","params","isPreview","getDeploymentDuration","measureDuration","e","PulumiError"],"mappings":";;AAGO,MAAMA,uCAAuCC;IAChD,MAAsB,SAAS;QAC3B,MAAMC,gBAAgB,IAAI,CAAC,aAAa;QACxC,MAAMC,KAAK,IAAI,CAAC,EAAE;QAClB,MAAMC,QAAQ,IAAI,CAAC,KAAK;QACxB,MAAMC,SAAS,IAAI,CAAC,YAAY;QAEhC,MAAMC,YAAY,CAAC,CAACD,OAAO,OAAO;QAElC,MAAME,wBAAwBC;QAE9B,IAAI;YACA,IAAIF,WACAH,GAAG,IAAI,CAAC,uCAAuCE,OAAO,GAAG;iBAEzDF,GAAG,IAAI,CAAC,uBAAuBE,OAAO,GAAG;YAG7CF,GAAG,SAAS;YAEZ,IAAI,CAAC,aAAa,CAAC,MAAM,CAAE,IAAI,CAACC,MAAM,SAAS;YAC/C,IAAI,CAAC,aAAa,CAAC,MAAM,CAAE,IAAI,CAACA,MAAM,SAAS;YAC/C,MAAMF;YAEN,IAAII,WACAH,GAAG,OAAO,CAAC,CAAC,qBAAqB,EAAEI,wBAAwB,CAAC,CAAC;iBAE7DJ,GAAG,OAAO,CAAC,CAAC,YAAY,EAAEI,wBAAwB,CAAC,CAAC;QAE5D,EAAE,OAAOE,GAAG;YAGR,MAAM,EAAEC,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC;YACjCD,aAAaC,eAGbP,GAAG,IAAI,CAACM,EAAE,OAAO;YAGrB,IAAIH,WACAH,GAAG,KAAK,CAAC;iBAETA,GAAG,KAAK,CAAC;YAGb,MAAMM;QACV;IACJ;AACJ"}
@@ -2,7 +2,6 @@ import { createImplementation } from "@webiny/di";
2
2
  import { CliCommandFactory, GetProjectSdkService, StdioService, UiService } from "@webiny/cli-core/abstractions/index.js";
3
3
  import { measureDuration } from "@webiny/cli-core/features/utils/index.js";
4
4
  import { createBaseAppOptions } from "@webiny/cli-core/features/common/index.js";
5
- import { PulumiError } from "@webiny/pulumi-sdk";
6
5
  class DestroyCommand {
7
6
  constructor(getProjectSdkService, uiService, stdioService){
8
7
  this.getProjectSdkService = getProjectSdkService;
@@ -59,6 +58,7 @@ class DestroyCommand {
59
58
  await pulumiProcess;
60
59
  ui.success(`Destroyed in ${getDestroyDuration()}.`);
61
60
  } catch (e) {
61
+ const { PulumiError } = await import("@webiny/pulumi-sdk");
62
62
  if (e instanceof PulumiError) ui.error("Destroy failed, please check the details above.");
63
63
  else {
64
64
  ui.text(e.message);
@@ -1 +1 @@
1
- {"version":3,"file":"features/DestroyCommand/DestroyCommand.js","sources":["../../../src/features/DestroyCommand/DestroyCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n CliCommandFactory,\n GetProjectSdkService,\n StdioService,\n UiService\n} from \"@webiny/cli-core/abstractions/index.js\";\nimport { measureDuration } from \"@webiny/cli-core/features/utils/index.js\";\nimport { createBaseAppOptions } from \"@webiny/cli-core/features/common/index.js\";\nimport { PulumiError } from \"@webiny/pulumi-sdk\";\nimport { AppName } from \"@webiny/project\";\n\nexport interface IDestroyNoAppParams {\n variant?: string;\n region?: string;\n env: string;\n}\n\nexport interface IDestroyWithAppParams extends IDestroyNoAppParams {\n app: AppName;\n build?: boolean;\n preview?: boolean;\n}\n\nexport type IDestroyCommandParams = IDestroyNoAppParams | IDestroyWithAppParams;\n\nexport class DestroyCommand implements CliCommandFactory.Interface<IDestroyCommandParams> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private uiService: UiService.Interface,\n private stdioService: StdioService.Interface\n ) {}\n\n async execute(): Promise<CliCommandFactory.CommandDefinition<IDestroyCommandParams>> {\n const projectSdk = await this.getProjectSdkService.execute();\n\n return {\n name: \"destroy\",\n description: \"Destroys specified app or all apps in the project\",\n examples: [\n \"$0 destroy api --env dev\",\n \"$0 destroy admin --env prod\",\n \"$0 destroy --env prod\",\n \"$0 destroy\"\n ],\n params: [\n {\n name: \"app\",\n description: \"Name of the app (core, admin, or api)\",\n type: \"string\"\n }\n ],\n options: createBaseAppOptions(projectSdk),\n handler: async (params: IDestroyCommandParams) => {\n if (\"app\" in params) {\n return this.destroyApp(params);\n }\n\n await this.destroyApp({ ...params, app: \"admin\" });\n await this.destroyApp({ ...params, app: \"api\" });\n await this.destroyApp({ ...params, app: \"core\" });\n }\n };\n }\n\n private async destroyApp(params: IDestroyWithAppParams) {\n const projectSdk = await this.getProjectSdkService.execute();\n const ui = this.uiService;\n const stdio = this.stdioService;\n\n const { pulumiProcess } = await projectSdk.destroyApp(params);\n\n const getDestroyDuration = measureDuration();\n\n try {\n ui.info(`Destroying %s app...`, params.app);\n\n ui.emptyLine();\n\n pulumiProcess.stdout!.pipe(stdio.getStdout());\n pulumiProcess.stderr!.pipe(stdio.getStderr());\n await pulumiProcess;\n\n ui.success(`Destroyed in ${getDestroyDuration()}.`);\n } catch (e) {\n if (e instanceof PulumiError) {\n ui.error(\"Destroy failed, please check the details above.\");\n } else {\n ui.text(e.message);\n ui.error(\"Destroy failed, please check the details above.\");\n }\n\n throw e;\n }\n }\n}\n\nexport const destroyCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: DestroyCommand,\n dependencies: [GetProjectSdkService, UiService, StdioService]\n});\n"],"names":["DestroyCommand","getProjectSdkService","uiService","stdioService","projectSdk","createBaseAppOptions","params","ui","stdio","pulumiProcess","getDestroyDuration","measureDuration","e","PulumiError","destroyCommand","createImplementation","CliCommandFactory","GetProjectSdkService","UiService","StdioService"],"mappings":";;;;;AA0BO,MAAMA;IACT,YACYC,oBAAoD,EACpDC,SAA8B,EAC9BC,YAAoC,CAC9C;aAHUF,oBAAoB,GAApBA;aACAC,SAAS,GAATA;aACAC,YAAY,GAAZA;IACT;IAEH,MAAM,UAA+E;QACjF,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAE1D,OAAO;YACH,MAAM;YACN,aAAa;YACb,UAAU;gBACN;gBACA;gBACA;gBACA;aACH;YACD,QAAQ;gBACJ;oBACI,MAAM;oBACN,aAAa;oBACb,MAAM;gBACV;aACH;YACD,SAASC,qBAAqBD;YAC9B,SAAS,OAAOE;gBACZ,IAAI,SAASA,QACT,OAAO,IAAI,CAAC,UAAU,CAACA;gBAG3B,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAQ;gBAChD,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAM;gBAC9C,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAO;YACnD;QACJ;IACJ;IAEA,MAAc,WAAWA,MAA6B,EAAE;QACpD,MAAMF,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAC1D,MAAMG,KAAK,IAAI,CAAC,SAAS;QACzB,MAAMC,QAAQ,IAAI,CAAC,YAAY;QAE/B,MAAM,EAAEC,aAAa,EAAE,GAAG,MAAML,WAAW,UAAU,CAACE;QAEtD,MAAMI,qBAAqBC;QAE3B,IAAI;YACAJ,GAAG,IAAI,CAAC,wBAAwBD,OAAO,GAAG;YAE1CC,GAAG,SAAS;YAEZE,cAAc,MAAM,CAAE,IAAI,CAACD,MAAM,SAAS;YAC1CC,cAAc,MAAM,CAAE,IAAI,CAACD,MAAM,SAAS;YAC1C,MAAMC;YAENF,GAAG,OAAO,CAAC,CAAC,aAAa,EAAEG,qBAAqB,CAAC,CAAC;QACtD,EAAE,OAAOE,GAAG;YACR,IAAIA,aAAaC,aACbN,GAAG,KAAK,CAAC;iBACN;gBACHA,GAAG,IAAI,CAACK,EAAE,OAAO;gBACjBL,GAAG,KAAK,CAAC;YACb;YAEA,MAAMK;QACV;IACJ;AACJ;AAEO,MAAME,iBAAiBC,qBAAqB;IAC/C,aAAaC;IACb,gBAAgBhB;IAChB,cAAc;QAACiB;QAAsBC;QAAWC;KAAa;AACjE"}
1
+ {"version":3,"file":"features/DestroyCommand/DestroyCommand.js","sources":["../../../src/features/DestroyCommand/DestroyCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n CliCommandFactory,\n GetProjectSdkService,\n StdioService,\n UiService\n} from \"@webiny/cli-core/abstractions/index.js\";\nimport { measureDuration } from \"@webiny/cli-core/features/utils/index.js\";\nimport { createBaseAppOptions } from \"@webiny/cli-core/features/common/index.js\";\nimport { AppName } from \"@webiny/project\";\n\nexport interface IDestroyNoAppParams {\n variant?: string;\n region?: string;\n env: string;\n}\n\nexport interface IDestroyWithAppParams extends IDestroyNoAppParams {\n app: AppName;\n build?: boolean;\n preview?: boolean;\n}\n\nexport type IDestroyCommandParams = IDestroyNoAppParams | IDestroyWithAppParams;\n\nexport class DestroyCommand implements CliCommandFactory.Interface<IDestroyCommandParams> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private uiService: UiService.Interface,\n private stdioService: StdioService.Interface\n ) {}\n\n async execute(): Promise<CliCommandFactory.CommandDefinition<IDestroyCommandParams>> {\n const projectSdk = await this.getProjectSdkService.execute();\n\n return {\n name: \"destroy\",\n description: \"Destroys specified app or all apps in the project\",\n examples: [\n \"$0 destroy api --env dev\",\n \"$0 destroy admin --env prod\",\n \"$0 destroy --env prod\",\n \"$0 destroy\"\n ],\n params: [\n {\n name: \"app\",\n description: \"Name of the app (core, admin, or api)\",\n type: \"string\"\n }\n ],\n options: createBaseAppOptions(projectSdk),\n handler: async (params: IDestroyCommandParams) => {\n if (\"app\" in params) {\n return this.destroyApp(params);\n }\n\n await this.destroyApp({ ...params, app: \"admin\" });\n await this.destroyApp({ ...params, app: \"api\" });\n await this.destroyApp({ ...params, app: \"core\" });\n }\n };\n }\n\n private async destroyApp(params: IDestroyWithAppParams) {\n const projectSdk = await this.getProjectSdkService.execute();\n const ui = this.uiService;\n const stdio = this.stdioService;\n\n const { pulumiProcess } = await projectSdk.destroyApp(params);\n\n const getDestroyDuration = measureDuration();\n\n try {\n ui.info(`Destroying %s app...`, params.app);\n\n ui.emptyLine();\n\n pulumiProcess.stdout!.pipe(stdio.getStdout());\n pulumiProcess.stderr!.pipe(stdio.getStderr());\n await pulumiProcess;\n\n ui.success(`Destroyed in ${getDestroyDuration()}.`);\n } catch (e) {\n // Imported here so that loading the destroy command doesn't load the Pulumi SDK. By\n // the time a destroy fails, the SDK is loaded anyway, since it started the process.\n const { PulumiError } = await import(\"@webiny/pulumi-sdk\");\n if (e instanceof PulumiError) {\n ui.error(\"Destroy failed, please check the details above.\");\n } else {\n ui.text(e.message);\n ui.error(\"Destroy failed, please check the details above.\");\n }\n\n throw e;\n }\n }\n}\n\nexport const destroyCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: DestroyCommand,\n dependencies: [GetProjectSdkService, UiService, StdioService]\n});\n"],"names":["DestroyCommand","getProjectSdkService","uiService","stdioService","projectSdk","createBaseAppOptions","params","ui","stdio","pulumiProcess","getDestroyDuration","measureDuration","e","PulumiError","destroyCommand","createImplementation","CliCommandFactory","GetProjectSdkService","UiService","StdioService"],"mappings":";;;;AAyBO,MAAMA;IACT,YACYC,oBAAoD,EACpDC,SAA8B,EAC9BC,YAAoC,CAC9C;aAHUF,oBAAoB,GAApBA;aACAC,SAAS,GAATA;aACAC,YAAY,GAAZA;IACT;IAEH,MAAM,UAA+E;QACjF,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAE1D,OAAO;YACH,MAAM;YACN,aAAa;YACb,UAAU;gBACN;gBACA;gBACA;gBACA;aACH;YACD,QAAQ;gBACJ;oBACI,MAAM;oBACN,aAAa;oBACb,MAAM;gBACV;aACH;YACD,SAASC,qBAAqBD;YAC9B,SAAS,OAAOE;gBACZ,IAAI,SAASA,QACT,OAAO,IAAI,CAAC,UAAU,CAACA;gBAG3B,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAQ;gBAChD,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAM;gBAC9C,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAO;YACnD;QACJ;IACJ;IAEA,MAAc,WAAWA,MAA6B,EAAE;QACpD,MAAMF,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAC1D,MAAMG,KAAK,IAAI,CAAC,SAAS;QACzB,MAAMC,QAAQ,IAAI,CAAC,YAAY;QAE/B,MAAM,EAAEC,aAAa,EAAE,GAAG,MAAML,WAAW,UAAU,CAACE;QAEtD,MAAMI,qBAAqBC;QAE3B,IAAI;YACAJ,GAAG,IAAI,CAAC,wBAAwBD,OAAO,GAAG;YAE1CC,GAAG,SAAS;YAEZE,cAAc,MAAM,CAAE,IAAI,CAACD,MAAM,SAAS;YAC1CC,cAAc,MAAM,CAAE,IAAI,CAACD,MAAM,SAAS;YAC1C,MAAMC;YAENF,GAAG,OAAO,CAAC,CAAC,aAAa,EAAEG,qBAAqB,CAAC,CAAC;QACtD,EAAE,OAAOE,GAAG;YAGR,MAAM,EAAEC,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC;YACrC,IAAID,aAAaC,aACbN,GAAG,KAAK,CAAC;iBACN;gBACHA,GAAG,IAAI,CAACK,EAAE,OAAO;gBACjBL,GAAG,KAAK,CAAC;YACb;YAEA,MAAMK;QACV;IACJ;AACJ;AAEO,MAAME,iBAAiBC,qBAAqB;IAC/C,aAAaC;IACb,gBAAgBhB;IAChB,cAAc;QAACiB;QAAsBC;QAAWC;KAAa;AACjE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/cli-aws",
3
- "version": "0.0.0-unstable.0d717d18dd",
3
+ "version": "0.0.0-unstable.eb81deee7e",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -13,20 +13,20 @@
13
13
  "description": "AWS-specific CLI commands for Webiny projects.",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@webiny/cli-core": "0.0.0-unstable.0d717d18dd",
17
- "@webiny/di": "1.0.2",
18
- "@webiny/project": "0.0.0-unstable.0d717d18dd",
19
- "@webiny/project-aws": "0.0.0-unstable.0d717d18dd",
20
- "@webiny/pulumi-sdk": "0.0.0-unstable.0d717d18dd",
21
- "@webiny/system-requirements": "0.0.0-unstable.0d717d18dd",
22
- "@webiny/telemetry": "0.0.0-unstable.0d717d18dd",
16
+ "@webiny/cli-core": "0.0.0-unstable.eb81deee7e",
17
+ "@webiny/di": "1.1.0",
18
+ "@webiny/project": "0.0.0-unstable.eb81deee7e",
19
+ "@webiny/project-aws": "0.0.0-unstable.eb81deee7e",
20
+ "@webiny/pulumi-sdk": "0.0.0-unstable.eb81deee7e",
21
+ "@webiny/system-requirements": "0.0.0-unstable.eb81deee7e",
22
+ "@webiny/telemetry": "0.0.0-unstable.eb81deee7e",
23
23
  "chalk": "6.0.0",
24
- "open": "11.0.0",
24
+ "open": "11.0.1",
25
25
  "ora": "9.4.1",
26
- "tsx": "4.23.1"
26
+ "tsx": "4.23.12"
27
27
  },
28
28
  "devDependencies": {
29
- "@webiny/build-tools": "0.0.0-unstable.0d717d18dd",
29
+ "@webiny/build-tools": "0.0.0-unstable.eb81deee7e",
30
30
  "typescript": "7.0.2"
31
31
  },
32
32
  "publishConfig": {