stacks 0.58.60 → 0.58.62

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 (92) hide show
  1. package/core/actions/dist/src/upgrade.js +1 -1
  2. package/core/actions/package.json +1 -1
  3. package/core/ai/package.json +1 -1
  4. package/core/alias/package.json +1 -1
  5. package/core/analytics/package.json +1 -1
  6. package/core/api/package.json +1 -1
  7. package/core/arrays/package.json +1 -1
  8. package/core/auth/package.json +1 -1
  9. package/core/buddy/package.json +1 -1
  10. package/core/build/package.json +1 -1
  11. package/core/bun-create/bud/package.json +1 -1
  12. package/core/bun-create/buddy/package.json +1 -1
  13. package/core/bun-create/stack/package.json +1 -1
  14. package/core/bun-create/stacks/package.json +1 -1
  15. package/core/bun-create/stx/package.json +1 -1
  16. package/core/bun-plugin-yaml/package.json +1 -1
  17. package/core/cache/package.json +1 -1
  18. package/core/chat/package.json +1 -1
  19. package/core/cli/dist/index.js +1 -1
  20. package/core/cli/package.json +1 -1
  21. package/core/cloud/dist/index.js +1 -1
  22. package/core/cloud/package.json +3 -3
  23. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  24. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  25. package/core/cloud/src/cloud/docs.ts +1 -1
  26. package/core/cloud/src/cloud/router-layer/nodejs/package.json +1 -1
  27. package/core/cloud/zip.ts +1 -1
  28. package/core/collections/package.json +1 -1
  29. package/core/config/package.json +1 -1
  30. package/core/database/package.json +1 -1
  31. package/core/datetime/package.json +1 -1
  32. package/core/desktop/package.json +1 -1
  33. package/core/development/package.json +1 -1
  34. package/core/dns/package.json +2 -2
  35. package/core/docs/package.json +1 -1
  36. package/core/email/package.json +1 -1
  37. package/core/enums/package.json +1 -1
  38. package/core/env/package.json +1 -1
  39. package/core/error-handling/package.json +1 -1
  40. package/core/eslint-config/package.json +3 -3
  41. package/core/events/package.json +1 -1
  42. package/core/faker/package.json +1 -1
  43. package/core/git/package.json +1 -1
  44. package/core/health/package.json +1 -1
  45. package/core/http/package.json +1 -1
  46. package/core/lint/package.json +1 -1
  47. package/core/logging/package.json +1 -1
  48. package/core/notifications/package.json +1 -1
  49. package/core/objects/package.json +1 -1
  50. package/core/orm/package.json +1 -1
  51. package/core/path/dist/index.js +5 -0
  52. package/core/path/package.json +1 -1
  53. package/core/path/src/index.ts +5 -0
  54. package/core/payments/package.json +2 -2
  55. package/core/push/package.json +1 -1
  56. package/core/query-builder/package.json +1 -1
  57. package/core/queue/package.json +1 -1
  58. package/core/raycast/package.json +1 -1
  59. package/core/realtime/package.json +1 -1
  60. package/core/repl/package.json +1 -1
  61. package/core/router/dist/index.js +4 -0
  62. package/core/router/package.json +1 -1
  63. package/core/scheduler/package.json +1 -1
  64. package/core/search-engine/package.json +1 -1
  65. package/core/security/package.json +1 -1
  66. package/core/server/package.json +1 -1
  67. package/core/signals/package.json +1 -1
  68. package/core/slug/package.json +1 -1
  69. package/core/sms/package.json +1 -1
  70. package/core/storage/dist/index.js +1 -0
  71. package/core/storage/package.json +1 -1
  72. package/core/storage/src/hash.ts +2 -0
  73. package/core/strings/package.json +1 -1
  74. package/core/tables/package.json +1 -1
  75. package/core/testing/package.json +1 -1
  76. package/core/tinker/package.json +1 -1
  77. package/core/tunnel/package.json +1 -1
  78. package/core/types/package.json +1 -1
  79. package/core/ui/package.json +1 -1
  80. package/core/utils/dist/index.js +4 -4
  81. package/core/utils/package.json +1 -1
  82. package/core/utils/src/clean.ts +3 -3
  83. package/core/validation/package.json +1 -1
  84. package/core/vite/dist/index.js +1 -1
  85. package/core/vite/package.json +1 -1
  86. package/core/whois/package.json +1 -1
  87. package/core/x-ray/package.json +1 -1
  88. package/core/zsh-buddy/package.json +1 -1
  89. package/ide/vscode/package.json +1 -1
  90. package/package.json +1 -1
  91. package/core/cloud/cdk.json +0 -62
  92. package/core/cloud/deploy.ts +0 -85
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks payments package. Currently supporting Stripe.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@stacksjs/utils": "workspace:*",
54
- "@stripe/stripe-js": "^2.4.0",
54
+ "@stripe/stripe-js": "^3.0.0",
55
55
  "stripe": "^14.16.0"
56
56
  },
57
57
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks Push integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/query-builder",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks Query Builder integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks-raycast",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks Raycast plugin.",
6
6
  "scripts": {
7
7
  "build": "echo 'No build step required yet.'"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/realtime",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks realtime integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/repl",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "A Stacks optimized TS & Vue REPL.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -264,6 +264,9 @@ function cliPath(path2) {
264
264
  function cloudPath(path2) {
265
265
  return corePath(`cloud/${path2 || ""}`);
266
266
  }
267
+ function frameworkCloudPath(path2) {
268
+ return frameworkPath(`cloud/${path2 || ""}`);
269
+ }
267
270
  function collectionsPath(path2) {
268
271
  return corePath(`collections/${path2 || ""}`);
269
272
  }
@@ -517,6 +520,7 @@ var path2 = {
517
520
  chatPath,
518
521
  cliPath,
519
522
  cloudPath,
523
+ frameworkCloudPath,
520
524
  collectionsPath,
521
525
  commandsPath,
522
526
  componentsPath,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks framework router.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks scheduler.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks search engine integrations.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks framework security.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "Local development and production-ready.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/signals",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks signals integration, based on Maverick.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/slug",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks slug functionality.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -189,6 +189,7 @@ var folders = {
189
189
  import {createHash} from "crypto";
190
190
  import {path as p2} from "@stacksjs/path";
191
191
  function hashFileOrDirectory(path4, hash) {
192
+ console.log("hashFileOrDirectory", path4);
192
193
  if (fs.statSync(path4).isDirectory()) {
193
194
  const files2 = fs.readdirSync(path4);
194
195
  for (const file of files2) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -4,6 +4,8 @@ import { path as p } from '@stacksjs/path'
4
4
  import { fs } from './fs'
5
5
 
6
6
  export function hashFileOrDirectory(path: string, hash: Hash): void {
7
+ // eslint-disable-next-line no-console
8
+ console.log('hashFileOrDirectory', path)
7
9
  if (fs.statSync(path).isDirectory()) {
8
10
  const files = fs.readdirSync(path)
9
11
  for (const file of files) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks string utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/tables",
3
- "version": "0.58.60",
3
+ "version": "0.58.62",
4
4
  "description": "The easy & modern way to work with tables. Facet filtering, searching, pagination, ...",
5
5
  "author": "Open Web Labs",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks way of testing.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tinker",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "All you need to tinker.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks UI engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -24,9 +24,9 @@ async function cleanProject() {
24
24
  p.frameworkPath("node_modules"),
25
25
  p.frameworkPath("**/dist"),
26
26
  p.frameworkPath("**/node_modules"),
27
- p.cloudPath("cdk.out/"),
28
- p.cloudPath("cdk.context.json"),
29
- p.cloudPath("dist.zip")
27
+ p.frameworkCloudPath("cdk.out/"),
28
+ p.frameworkCloudPath("cdk.context.json"),
29
+ p.frameworkCloudPath("dist.zip")
30
30
  ]);
31
31
  }
32
32
  // src/config.ts
@@ -922,7 +922,7 @@ function prettyBytes(number, options) {
922
922
  return prefix + numberString + separator + unit;
923
923
  }
924
924
  // package.json
925
- var version = "0.58.60";
925
+ var version = "0.58.62";
926
926
  export {
927
927
  wordChar,
928
928
  wordBoundary,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks helper functions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -10,8 +10,8 @@ export async function cleanProject() {
10
10
  p.frameworkPath('node_modules'),
11
11
  p.frameworkPath('**/dist'),
12
12
  p.frameworkPath('**/node_modules'),
13
- p.cloudPath('cdk.out/'),
14
- p.cloudPath('cdk.context.json'),
15
- p.cloudPath('dist.zip'),
13
+ p.frameworkCloudPath('cdk.out/'),
14
+ p.frameworkCloudPath('cdk.context.json'),
15
+ p.frameworkCloudPath('dist.zip'),
16
16
  ])
17
17
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/validation",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks Validation ways.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -609,7 +609,7 @@ var web_components_default = defineConfig6(({ command }) => {
609
609
  // src/plugin/docs.ts
610
610
  import {kolorist as c2} from "@stacksjs/cli";
611
611
  // package.json
612
- var version = "0.58.60";
612
+ var version = "0.58.62";
613
613
 
614
614
  // src/plugin/docs.ts
615
615
  var docsEngine = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/vite",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks Vite plugin.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/whois",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "Easily get whois info.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/x-ray",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "All you need to debug, log & analyze.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zsh-buddy",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "A better Stacks zsh experience.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.58.60",
5
+ "version": "0.58.62",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.62",
5
5
  "description": "The Stacks framework.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,62 +0,0 @@
1
- {
2
- "app": "bun ./deploy.ts",
3
- "watch": {
4
- "include": [
5
- "**"
6
- ],
7
- "exclude": [
8
- "README.md",
9
- "cdk*.json",
10
- "**/*.d.ts",
11
- "**/*.js",
12
- "tsconfig.json",
13
- "package*.json",
14
- "yarn.lock",
15
- "node_modules",
16
- "test"
17
- ]
18
- },
19
- "context": {
20
- "@aws-cdk/aws-lambda:recognizeLayerVersion": true,
21
- "@aws-cdk/core:checkSecretUsage": true,
22
- "@aws-cdk/core:target-partitions": [
23
- "aws",
24
- "aws-cn"
25
- ],
26
- "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
27
- "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
28
- "@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
29
- "@aws-cdk/aws-iam:minimizePolicies": true,
30
- "@aws-cdk/core:validateSnapshotRemovalPolicy": true,
31
- "@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
32
- "@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
33
- "@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
34
- "@aws-cdk/core:enablePartitionLiterals": true,
35
- "@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
36
- "@aws-cdk/aws-iam:standardizedServicePrincipals": true,
37
- "@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
38
- "@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
39
- "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
40
- "@aws-cdk/aws-route53-patters:useCertificate": true,
41
- "@aws-cdk/customresources:installLatestAwsSdkDefault": false,
42
- "@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
43
- "@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
44
- "@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
45
- "@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
46
- "@aws-cdk/aws-redshift:columnId": true,
47
- "@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
48
- "@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
49
- "@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
50
- "@aws-cdk/aws-kms:aliasNameRef": true,
51
- "@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
52
- "@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
53
- "@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
54
- "@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
55
- "@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
56
- "@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
57
- "@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
58
- "@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
59
- "@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true
60
- },
61
- "toolkitStackName": "stacks-toolkit"
62
- }
@@ -1,85 +0,0 @@
1
- import 'source-map-support/register'
2
- import process from 'node:process'
3
- import { config } from '@stacksjs/config'
4
- import { log } from '@stacksjs/cli'
5
- import { ExitCode } from '@stacksjs/types'
6
- import { slug as slugify } from '@stacksjs/strings'
7
- import { env } from '@stacksjs/env'
8
- import { App } from 'aws-cdk-lib'
9
- import { Cloud } from './src/cloud'
10
- import { getOrCreateTimestamp } from './src/helpers'
11
- import type { CloudOptions } from './src/types'
12
-
13
- const app = new App()
14
- const appEnv = (config.app.env as string) === 'local'
15
- ? 'dev'
16
- : (config.app.env as string) === 'development'
17
- ? 'dev'
18
- : (config.app.env as string) === 'staging'
19
- ? 'stage'
20
- : (config.app.env as string) === 'production'
21
- ? 'prod'
22
- : config.app.env
23
-
24
- const appKey = config.app.key
25
- const domain = config.app.url
26
- const appName = config.app.name?.toLowerCase() ?? 'stacks'
27
- const slug = slugify(appName)
28
- const name = `${slug}-cloud`
29
- const account = env.AWS_ACCOUNT_ID
30
- // const region = env.AWS_DEFAULT_REGION
31
- const region = 'us-east-1' // currently, us-east-1 is the only fully-supported region
32
- let timestamp
33
-
34
- if (!appKey) {
35
- log.info('Please set an application key. You may need to run `buddy key:generate`.')
36
- process.exit(ExitCode.InvalidArgument)
37
- }
38
-
39
- const parts = appKey.split(':')
40
- if (parts && parts.length < 2)
41
- throw new Error('Invalid format application key format. Expected a colon-separated string. You may need to run `buddy key:generate`.')
42
-
43
- if (!account || !region)
44
- throw new Error('Stacks is missing your accountId or region. Please ensure it is set in your .env file')
45
-
46
- if (!domain)
47
- throw new Error('Missing app.url in config.')
48
-
49
- if (!appName)
50
- throw new Error('Missing app.name in config.')
51
-
52
- if (!config.team || Object.keys(config.team).length === 0)
53
- throw new Error('Your ./config team needs to at least have one member defined. Please set yourself as a team member and try deploying again.')
54
-
55
- const usEnv = {
56
- account,
57
- region,
58
- }
59
-
60
- try {
61
- timestamp = await getOrCreateTimestamp()
62
- }
63
- catch (error) {
64
- console.error('Error fetching timestamp', error)
65
- process.exit(ExitCode.FatalError)
66
- }
67
-
68
- export const options = {
69
- env: usEnv,
70
- name,
71
- slug,
72
- appEnv: appEnv ?? 'dev',
73
- appName,
74
- domain,
75
- timestamp,
76
- } satisfies CloudOptions
77
-
78
- const cloud = new Cloud(app, name, {
79
- ...options,
80
- description: `The Stacks Cloud`,
81
- })
82
-
83
- await cloud.init()
84
-
85
- app.synth()