sst 2.1.12 → 2.1.13

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.
@@ -1,4 +1,4 @@
1
- const PACKAGE_MATCH = ["sst", "aws-cdk", "@aws-cdk", "constructs"];
1
+ const PACKAGE_MATCH = ["sst", "astro-sst", "aws-cdk", "@aws-cdk", "constructs"];
2
2
  const FIELDS = ["dependencies", "devDependencies"];
3
3
  export const update = (program) => program.command("update [version]", "Update your SST and CDK packages", (yargs) => yargs.positional("version", {
4
4
  type: "string",
@@ -45,7 +45,8 @@ export const update = (program) => program.command("update [version]", "Update y
45
45
  if (!PACKAGE_MATCH.some((x) => pkg.startsWith(x)))
46
46
  continue;
47
47
  const desired = (() => {
48
- if (pkg === "sst")
48
+ // Both sst and astro-sst should be sharing the same version
49
+ if (["sst", "astro-sst"].includes(pkg))
49
50
  return metadata.version;
50
51
  if (pkg === "constructs")
51
52
  return metadata.dependencies.constructs;
@@ -402,12 +402,12 @@ export interface NodeJSProps {
402
402
  /**
403
403
  * Configure format
404
404
  *
405
- * @default "cjs"
405
+ * @default "esm"
406
406
  *
407
407
  * @example
408
408
  * ```js
409
409
  * nodejs: {
410
- * format: "esm"
410
+ * format: "cjs"
411
411
  * }
412
412
  * ```
413
413
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },
package/sst.mjs CHANGED
@@ -7440,7 +7440,7 @@ function secrets(program2) {
7440
7440
  }
7441
7441
 
7442
7442
  // src/cli/commands/update.ts
7443
- var PACKAGE_MATCH = ["sst", "aws-cdk", "@aws-cdk", "constructs"];
7443
+ var PACKAGE_MATCH = ["sst", "astro-sst", "aws-cdk", "@aws-cdk", "constructs"];
7444
7444
  var FIELDS = ["dependencies", "devDependencies"];
7445
7445
  var update = (program2) => program2.command(
7446
7446
  "update [version]",
@@ -7489,7 +7489,7 @@ var update = (program2) => program2.command(
7489
7489
  if (!PACKAGE_MATCH.some((x) => pkg.startsWith(x)))
7490
7490
  continue;
7491
7491
  const desired = (() => {
7492
- if (pkg === "sst")
7492
+ if (["sst", "astro-sst"].includes(pkg))
7493
7493
  return metadata3.version;
7494
7494
  if (pkg === "constructs")
7495
7495
  return metadata3.dependencies.constructs;