@wraps.dev/cli 2.23.0 → 2.23.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.
Binary file
package/dist/cli.js CHANGED
@@ -528,6 +528,9 @@ function parsePulumiError(error) {
528
528
  if (message.includes("stack is currently locked")) {
529
529
  return { code: "STACK_LOCKED" };
530
530
  }
531
+ if (/ENOENT[:\s].*\bpulumi\b|spawn pulumi ENOENT/.test(message)) {
532
+ return { code: "NOT_INSTALLED" };
533
+ }
531
534
  return { code: "PULUMI_ERROR" };
532
535
  }
533
536
  function redactSensitiveValues(input) {
@@ -795,6 +798,8 @@ function pulumiErrorToWrapsError(code, iamAction, service, resourceName, resourc
795
798
  );
796
799
  case "STACK_LOCKED":
797
800
  return errors.stackLocked();
801
+ case "NOT_INSTALLED":
802
+ return errors.pulumiNotInstalled();
798
803
  case "SES_PERMISSION_DENIED":
799
804
  return errors.sesPermissionDenied(iamAction || "unknown");
800
805
  case "DYNAMODB_PERMISSION_DENIED":
@@ -8366,7 +8371,7 @@ async function deployInboundLambda(config2) {
8366
8371
  const functionName = "wraps-inbound-email-processor";
8367
8372
  const lambdaFunction = new aws17.lambda.Function(functionName, {
8368
8373
  name: functionName,
8369
- runtime: "nodejs20.x",
8374
+ runtime: "nodejs24.x",
8370
8375
  handler: "index.handler",
8371
8376
  role: lambdaRole.arn,
8372
8377
  code: new pulumi13.asset.FileArchive(inboundProcessorCode),
@@ -26391,7 +26396,7 @@ async function loadWrapsConfig(wrapsDir) {
26391
26396
  write: false,
26392
26397
  format: "esm",
26393
26398
  platform: "node",
26394
- target: "node20",
26399
+ target: "node24",
26395
26400
  alias: {
26396
26401
  "@wraps.dev/client": join12(shimDir, "wraps-client-shim.mjs")
26397
26402
  }
@@ -26453,7 +26458,7 @@ async function compileForPreview(filePath, slug, wrapsDir) {
26453
26458
  write: false,
26454
26459
  format: "esm",
26455
26460
  platform: "node",
26456
- target: "node20",
26461
+ target: "node24",
26457
26462
  jsx: "automatic",
26458
26463
  nodePaths: cliNodeModules,
26459
26464
  banner: {
@@ -27102,7 +27107,7 @@ async function compileTemplate(filePath, slug, source, sourceHash, wrapsDir) {
27102
27107
  write: false,
27103
27108
  format: "esm",
27104
27109
  platform: "node",
27105
- target: "node20",
27110
+ target: "node24",
27106
27111
  jsx: "automatic",
27107
27112
  nodePaths: cliNodeModules,
27108
27113
  // Provide require() for CJS dependencies bundled into ESM output
@@ -30593,7 +30598,7 @@ function durationToSeconds(duration) {
30593
30598
  write: false,
30594
30599
  format: "esm",
30595
30600
  platform: "node",
30596
- target: "node20",
30601
+ target: "node24",
30597
30602
  alias: {
30598
30603
  "@wraps.dev/client": join17(shimDir, "wraps-client-shim.mjs")
30599
30604
  }
@@ -33767,7 +33772,7 @@ async function deploySelfhostStack(config2) {
33767
33772
  });
33768
33773
  const lambdaFn = new aws20.lambda.Function("wraps-selfhost-api", {
33769
33774
  name: "wraps-selfhost-api",
33770
- runtime: "nodejs22.x",
33775
+ runtime: "nodejs24.x",
33771
33776
  handler: "lambda.handler",
33772
33777
  role: role.arn,
33773
33778
  code: new pulumi25.asset.FileArchive(config2.lambdaZipPath),
@@ -34300,6 +34305,13 @@ async function selfhostDestroy(options) {
34300
34305
  process.exit(0);
34301
34306
  }
34302
34307
  }
34308
+ const wasAutoInstalled = await progress.execute(
34309
+ "Checking Pulumi CLI installation",
34310
+ async () => await ensurePulumiInstalled()
34311
+ );
34312
+ if (wasAutoInstalled) {
34313
+ progress.info("Pulumi CLI was automatically installed");
34314
+ }
34303
34315
  await progress.execute(
34304
34316
  "Destroying self-hosted infrastructure (this may take 2-3 minutes)",
34305
34317
  async () => {
@@ -38394,7 +38406,7 @@ async function deploySMSLambdaFunction(config2) {
38394
38406
  "wraps-sms-event-processor",
38395
38407
  {
38396
38408
  name: "wraps-sms-event-processor",
38397
- runtime: "nodejs20.x",
38409
+ runtime: "nodejs24.x",
38398
38410
  handler: "index.handler",
38399
38411
  role: lambdaRole.arn,
38400
38412
  code: new pulumi31.asset.FileArchive(codeDir),