@anthusai/papyrus 1.18.0-next.2 → 1.18.0-next.3

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.
@@ -85,7 +85,7 @@ if (accountStack !== undefined) {
85
85
  const { App } = createRequire(path.join(process.cwd(), "noop.js"))("aws-cdk-lib");
86
86
  const app = new App({ outdir: path.resolve(opt("out", "cdk.out")) });
87
87
  new GithubOidcProviderStack(app, "GithubOidcProviderStack", {
88
- env: { account: opt("account", "335163751677"), region: opt("region", "us-east-1") },
88
+ env: { account: opt("account", process.env.CDK_DEFAULT_ACCOUNT ?? "335163751677"), region: opt("region", process.env.CDK_DEFAULT_REGION ?? "us-east-1") },
89
89
  stackName: "github-oidc-provider",
90
90
  });
91
91
  app.synth();
@@ -132,6 +132,8 @@ if (command === "deploy") {
132
132
  process.exit(0);
133
133
  }
134
134
  const outputDirectory = path.resolve(opt("out", process.env.CDK_OUTDIR ?? "cdk.out"));
135
+ const explicitAccount = opt("account");
136
+ const explicitRegion = opt("region");
135
137
  const synthCommand = [
136
138
  process.execPath,
137
139
  path.resolve(process.argv[1]),
@@ -140,14 +142,12 @@ if (command === "deploy") {
140
142
  path.resolve(opt("site", "infra/site.json")),
141
143
  "--out",
142
144
  outputDirectory,
143
- "--account",
144
- opt("account", process.env.CDK_DEFAULT_ACCOUNT ?? "335163751677"),
145
- "--region",
146
- opt("region", process.env.CDK_DEFAULT_REGION ?? "us-east-1"),
145
+ ...(explicitAccount ? ["--account", explicitAccount] : []),
146
+ ...(explicitRegion ? ["--region", explicitRegion] : []),
147
147
  ].map((part) => JSON.stringify(part)).join(" ");
148
148
  const deployment = spawnSync(
149
149
  "npx",
150
- ["--yes", "aws-cdk@2", "deploy", "--app", synthCommand, "--require-approval", "never", `AmplifyAppShell-${config.siteId}`],
150
+ ["--yes", "aws-cdk@2", "deploy", "--app", synthCommand, "--require-approval", "never", "--output", outputDirectory, `AmplifyAppShell-${config.siteId}`],
151
151
  { stdio: "inherit" },
152
152
  );
153
153
  process.exit(deployment.status ?? 1);
@@ -164,7 +164,7 @@ try {
164
164
  const { App } = createRequire(path.join(process.cwd(), "noop.js"))("aws-cdk-lib");
165
165
  const app = new App({ outdir: path.resolve(opt("out", "cdk.out")) });
166
166
  new AmplifyAppShellStack(app, `AmplifyAppShell-${config.siteId}`, config, {
167
- env: { account: opt("account", "335163751677"), region: opt("region", "us-east-1") },
167
+ env: { account: opt("account", process.env.CDK_DEFAULT_ACCOUNT ?? "335163751677"), region: opt("region", process.env.CDK_DEFAULT_REGION ?? "us-east-1") },
168
168
  stackName: resolveStackName(config),
169
169
  });
170
170
  app.synth();
package/package.json CHANGED
@@ -379,7 +379,7 @@
379
379
  "optional": true
380
380
  }
381
381
  },
382
- "version": "1.18.0-next.2",
382
+ "version": "1.18.0-next.3",
383
383
  "dependencies": {
384
384
  "@aws-amplify/adapter-nextjs": "^1.7.3",
385
385
  "@aws-crypto/sha256-js": "5.2.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.18.0-next.2",
2
+ "version": "1.18.0-next.3",
3
3
  "routes": [
4
4
  {
5
5
  "file": "app/%5F_preview/[[...path]]/route.ts",