stacks 0.58.50 → 0.58.52

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 (209) hide show
  1. package/core/actions/dist/src/deploy/index.js +2 -2
  2. package/core/actions/dist/src/upgrade.js +1 -1
  3. package/core/actions/package.json +1 -1
  4. package/core/actions/src/build/cli.ts +1 -1
  5. package/core/actions/src/build/server.ts +9 -0
  6. package/core/actions/src/deploy/index.ts +2 -2
  7. package/core/actions/tsconfig.json +3 -0
  8. package/core/ai/package.json +1 -1
  9. package/core/ai/tsconfig.json +3 -0
  10. package/core/alias/package.json +1 -1
  11. package/core/alias/tsconfig.json +3 -0
  12. package/core/analytics/package.json +1 -1
  13. package/core/analytics/tsconfig.json +3 -0
  14. package/core/api/package.json +1 -1
  15. package/core/api/tsconfig.json +3 -0
  16. package/core/arrays/package.json +1 -1
  17. package/core/arrays/tsconfig.json +3 -0
  18. package/core/auth/package.json +1 -1
  19. package/core/auth/tsconfig.json +3 -0
  20. package/core/buddy/dist/{chunk-91084836e95161e8.js → chunk-d52e40a990b45728.js} +152 -84
  21. package/core/buddy/dist/cli.js +4 -1
  22. package/core/buddy/dist/index.js +3 -1
  23. package/core/buddy/package.json +1 -1
  24. package/core/buddy/src/cli.ts +2 -0
  25. package/core/buddy/src/commands/build.ts +17 -1
  26. package/core/buddy/src/commands/deploy.ts +2 -2
  27. package/core/buddy/src/commands/index.ts +1 -0
  28. package/core/buddy/src/commands/list.ts +39 -0
  29. package/core/buddy/src/commands/setup.ts +57 -1
  30. package/core/buddy/tsconfig.json +3 -0
  31. package/core/build/package.json +1 -1
  32. package/core/build/tsconfig.json +3 -0
  33. package/core/bun-create/bud/package.json +1 -1
  34. package/core/bun-create/buddy/package.json +1 -1
  35. package/core/bun-create/stack/package.json +1 -1
  36. package/core/bun-create/stacks/package.json +1 -1
  37. package/core/bun-create/stx/package.json +2 -1
  38. package/core/bun-plugin-yaml/package.json +1 -1
  39. package/core/bun-plugin-yaml/tsconfig.json +3 -0
  40. package/core/cache/package.json +1 -1
  41. package/core/cache/tsconfig.json +3 -0
  42. package/core/chat/package.json +8 -8
  43. package/core/chat/tsconfig.json +3 -0
  44. package/core/cli/dist/index.js +1 -1
  45. package/core/cli/package.json +1 -1
  46. package/core/cli/tsconfig.json +3 -0
  47. package/core/cloud/build.ts +1 -1
  48. package/core/cloud/deploy.ts +10 -1
  49. package/core/cloud/dist/index.js +167 -807
  50. package/core/cloud/package.json +2 -3
  51. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
  52. package/core/cloud/src/cloud/cdn.ts +59 -6
  53. package/core/cloud/src/cloud/compute.ts +29 -19
  54. package/core/cloud/src/cloud/dns.ts +8 -0
  55. package/core/cloud/src/cloud/index.ts +8 -2
  56. package/core/cloud/src/cloud/queue.ts +46 -0
  57. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  58. package/core/cloud/src/cloud/security.ts +1 -1
  59. package/core/cloud/src/helpers.ts +13 -1
  60. package/core/cloud/tsconfig.json +3 -0
  61. package/core/collections/package.json +1 -1
  62. package/core/collections/tsconfig.json +3 -0
  63. package/core/config/dist/index.js +154 -83
  64. package/core/config/package.json +2 -2
  65. package/core/config/tsconfig.json +3 -0
  66. package/core/database/package.json +1 -1
  67. package/core/database/src/kysely-bun-worker/mitt.ts +1 -1
  68. package/core/database/tsconfig.json +3 -0
  69. package/core/datetime/package.json +1 -1
  70. package/core/datetime/tsconfig.json +3 -0
  71. package/core/desktop/package.json +1 -1
  72. package/core/desktop/tsconfig.json +3 -0
  73. package/core/development/package.json +1 -1
  74. package/core/development/tsconfig.json +3 -0
  75. package/core/dns/package.json +1 -1
  76. package/core/dns/tsconfig.json +3 -0
  77. package/core/docs/package.json +1 -1
  78. package/core/docs/tsconfig.json +3 -0
  79. package/core/email/package.json +12 -12
  80. package/core/email/tsconfig.json +3 -0
  81. package/core/enums/dist/index.js +1 -0
  82. package/core/enums/package.json +1 -1
  83. package/core/enums/src/index.ts +1 -0
  84. package/core/enums/tsconfig.json +3 -0
  85. package/core/env/package.json +1 -1
  86. package/core/env/tsconfig.json +3 -0
  87. package/core/error-handling/package.json +1 -1
  88. package/core/error-handling/tsconfig.json +3 -0
  89. package/core/eslint-config/package.json +3 -3
  90. package/core/eslint-config/src/configs/typescript.ts +1 -0
  91. package/core/eslint-config/src/factory.ts +1 -0
  92. package/core/events/package.json +1 -1
  93. package/core/events/src/index.ts +3 -6
  94. package/core/events/tsconfig.json +3 -0
  95. package/core/faker/package.json +1 -1
  96. package/core/faker/tsconfig.json +3 -0
  97. package/core/git/package.json +1 -1
  98. package/core/git/tsconfig.json +3 -0
  99. package/core/health/package.json +1 -1
  100. package/core/health/tsconfig.json +3 -0
  101. package/core/http/package.json +1 -1
  102. package/core/http/tsconfig.json +3 -0
  103. package/core/lint/package.json +1 -1
  104. package/core/lint/tsconfig.json +3 -0
  105. package/core/logging/package.json +1 -1
  106. package/core/logging/tsconfig.json +3 -0
  107. package/core/notifications/package.json +22 -22
  108. package/core/notifications/tsconfig.json +3 -0
  109. package/core/objects/package.json +1 -1
  110. package/core/objects/tsconfig.json +3 -0
  111. package/core/orm/package.json +1 -1
  112. package/core/orm/tsconfig.json +3 -0
  113. package/core/path/package.json +1 -1
  114. package/core/path/tsconfig.json +3 -0
  115. package/core/payments/dist/index.js +21 -3
  116. package/core/payments/package.json +1 -1
  117. package/core/payments/tsconfig.json +3 -0
  118. package/core/push/package.json +5 -5
  119. package/core/push/tsconfig.json +3 -0
  120. package/core/query-builder/package.json +1 -1
  121. package/core/query-builder/tsconfig.json +3 -0
  122. package/core/queue/package.json +1 -1
  123. package/core/queue/tsconfig.json +3 -0
  124. package/core/raycast/package.json +1 -1
  125. package/core/realtime/package.json +1 -1
  126. package/core/realtime/tsconfig.json +3 -0
  127. package/core/repl/package.json +1 -1
  128. package/core/repl/tsconfig.json +3 -0
  129. package/core/router/dist/index.js +3 -4
  130. package/core/router/package.json +1 -1
  131. package/core/router/src/router.ts +11 -11
  132. package/core/router/src/server.ts +4 -4
  133. package/core/router/tsconfig.json +3 -0
  134. package/core/scheduler/build.ts +1 -1
  135. package/core/scheduler/dist/index.js +682 -152
  136. package/core/scheduler/package.json +7 -4
  137. package/core/scheduler/src/constants.ts +81 -0
  138. package/core/scheduler/src/errors.ts +7 -0
  139. package/core/scheduler/src/index.ts +15 -317
  140. package/core/scheduler/src/job.ts +315 -0
  141. package/core/scheduler/src/schedule.ts +111 -0
  142. package/core/scheduler/src/time.ts +823 -0
  143. package/core/scheduler/src/types/cron.ts +98 -0
  144. package/core/scheduler/src/types/utils.ts +14 -0
  145. package/core/scheduler/src/utils.ts +19 -0
  146. package/core/scheduler/tests/cron.fuzz.ts +120 -0
  147. package/core/scheduler/tests/cron.test.ts +1241 -0
  148. package/core/scheduler/tests/crontime.test.ts +778 -0
  149. package/core/scheduler/tsconfig.json +3 -0
  150. package/core/search-engine/package.json +1 -1
  151. package/core/search-engine/tsconfig.json +3 -0
  152. package/core/security/package.json +1 -1
  153. package/core/security/tsconfig.json +3 -0
  154. package/core/server/package.json +1 -1
  155. package/core/server/tsconfig.json +3 -0
  156. package/core/signals/package.json +1 -1
  157. package/core/signals/tsconfig.json +3 -0
  158. package/core/slug/package.json +1 -1
  159. package/core/slug/tsconfig.json +3 -0
  160. package/core/sms/package.json +11 -11
  161. package/core/sms/tsconfig.json +3 -0
  162. package/core/storage/package.json +1 -1
  163. package/core/storage/tsconfig.json +3 -0
  164. package/core/strings/package.json +1 -1
  165. package/core/strings/tsconfig.json +3 -0
  166. package/core/tables/package.json +1 -1
  167. package/core/tables/tsconfig.json +3 -0
  168. package/core/testing/package.json +1 -1
  169. package/core/testing/tsconfig.json +3 -0
  170. package/core/tinker/package.json +1 -1
  171. package/core/tinker/tsconfig.json +3 -0
  172. package/core/tunnel/package.json +1 -1
  173. package/core/tunnel/tsconfig.json +3 -0
  174. package/core/types/package.json +3 -3
  175. package/core/types/src/app.ts +2 -2
  176. package/core/types/src/cli.ts +1 -1
  177. package/core/types/src/cloud.ts +5 -1
  178. package/core/types/src/cron-jobs.ts +1 -0
  179. package/core/types/src/queue.ts +3 -1
  180. package/core/types/tsconfig.json +3 -0
  181. package/core/ui/package.json +4 -4
  182. package/core/ui/tsconfig.json +3 -0
  183. package/core/utils/dist/index.js +1 -1
  184. package/core/utils/package.json +1 -1
  185. package/core/utils/src/promise.ts +2 -2
  186. package/core/utils/tsconfig.json +3 -0
  187. package/core/validation/package.json +1 -1
  188. package/core/validation/src/rules.ts +3 -3
  189. package/core/validation/tsconfig.json +3 -0
  190. package/core/vite/dist/index.js +1 -1
  191. package/core/vite/package.json +1 -1
  192. package/core/vite/tsconfig.json +3 -0
  193. package/core/whois/package.json +1 -1
  194. package/core/whois/tsconfig.json +3 -0
  195. package/core/x-ray/package.json +1 -1
  196. package/core/x-ray/tsconfig.json +3 -0
  197. package/core/zsh-buddy/README.md +6 -2
  198. package/core/zsh-buddy/buddy.plugin.zsh +109 -0
  199. package/core/zsh-buddy/package.json +1 -1
  200. package/ide/dictionary.txt +2 -0
  201. package/ide/vscode/package.json +1 -1
  202. package/package.json +1 -1
  203. package/buddy +0 -2
  204. package/core/actions/src/zip/api.ts +0 -22
  205. package/core/bud +0 -2
  206. package/core/cloud/buddy +0 -2
  207. package/core/cloud/src/cloud/package/README.md +0 -59
  208. package/core/cloud/src/cloud/package/package.json +0 -63
  209. package/core/scheduler/tests/example.test.ts +0 -5
@@ -15,10 +15,11 @@ http,
15
15
  install,
16
16
  key,
17
17
  lint,
18
+ list,
18
19
  release,
19
20
  setup,
20
21
  upgrade
21
- } from "./chunk-91084836e95161e8.js";
22
+ } from "./chunk-d52e40a990b45728.js";
22
23
  import"./chunk-0455e53fab4244b1.js";
23
24
 
24
25
  // src/cli.ts
@@ -47,6 +48,7 @@ async function main() {
47
48
  http(buddy);
48
49
  install(buddy);
49
50
  lint(buddy);
51
+ list(buddy);
50
52
  release(buddy);
51
53
  setup(buddy);
52
54
  upgrade(buddy);
@@ -60,6 +62,7 @@ async function main() {
60
62
  else
61
63
  console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default);
62
64
  }
65
+ buddy.help();
63
66
  buddy.parse();
64
67
  }
65
68
  process.on("uncaughtException", handleError);
@@ -19,6 +19,7 @@ inspire,
19
19
  install,
20
20
  key,
21
21
  lint,
22
+ list,
22
23
  make,
23
24
  migrate,
24
25
  optimizePkgxDeps,
@@ -32,7 +33,7 @@ tinker,
32
33
  types,
33
34
  upgrade,
34
35
  version
35
- } from "./chunk-91084836e95161e8.js";
36
+ } from "./chunk-d52e40a990b45728.js";
36
37
  import"./chunk-0455e53fab4244b1.js";
37
38
  export {
38
39
  version,
@@ -48,6 +49,7 @@ export {
48
49
  optimizePkgxDeps,
49
50
  migrate,
50
51
  make,
52
+ list,
51
53
  lint,
52
54
  key,
53
55
  install,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Meet Buddy. The Stacks runtime.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -35,6 +35,7 @@ async function main() {
35
35
  cmd.http(buddy)
36
36
  cmd.install(buddy)
37
37
  cmd.lint(buddy)
38
+ cmd.list(buddy)
38
39
  // cmd.make(buddy)
39
40
  // cmd.migrate(buddy)
40
41
  cmd.release(buddy)
@@ -61,6 +62,7 @@ async function main() {
61
62
  console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default)
62
63
  }
63
64
 
65
+ buddy.help()
64
66
  buddy.parse()
65
67
  }
66
68
 
@@ -19,6 +19,8 @@ export function build(buddy: CLI) {
19
19
  pages: 'Build your frontend',
20
20
  docs: 'Build your documentation',
21
21
  framework: 'Build Stacks framework',
22
+ cli: 'Automagically build the CLI',
23
+ server: 'Build the Stacks cloud server (Docker image)',
22
24
  select: 'What are you trying to build?',
23
25
  project: 'Target a specific project',
24
26
  verbose: 'Enable verbose output',
@@ -36,6 +38,7 @@ export function build(buddy: CLI) {
36
38
  .option('-b, --buddy', descriptions.buddy, { default: false })
37
39
  .option('-s, --stacks', descriptions.framework, { default: false })
38
40
  .option('-p, --project', descriptions.project, { default: false })
41
+ .option('--server', descriptions.server, { default: false })
39
42
  .option('--verbose', descriptions.verbose, { default: false })
40
43
  .action(async (server: string | undefined, options: BuildOptions) => {
41
44
  switch (server) {
@@ -66,6 +69,9 @@ export function build(buddy: CLI) {
66
69
  case 'stacks':
67
70
  options.stacks = true
68
71
  break
72
+ case 'server':
73
+ options.stacks = true
74
+ break
69
75
  default:
70
76
  break
71
77
  }
@@ -109,7 +115,7 @@ export function build(buddy: CLI) {
109
115
  })
110
116
 
111
117
  buddy
112
- .command('build:cli', 'Automagically build the CLI')
118
+ .command('build:cli', descriptions.cli)
113
119
  .alias('prod:cli')
114
120
  .option('-b, --buddy', descriptions.buddy, { default: true })
115
121
  .option('-p, --project', descriptions.project, { default: false })
@@ -118,6 +124,16 @@ export function build(buddy: CLI) {
118
124
  await runAction(Action.BuildCli, options)
119
125
  })
120
126
 
127
+ buddy
128
+ .command('build:server', descriptions.server)
129
+ .alias('prod:server')
130
+ .alias('build:docker')
131
+ .option('-p, --project', descriptions.project, { default: false })
132
+ .option('--verbose', descriptions.verbose, { default: false })
133
+ .action(async (options: BuildOptions) => {
134
+ await runAction(Action.BuildServer, options)
135
+ })
136
+
121
137
  buddy
122
138
  .command('build:functions', 'Automagically build function library for npm/CDN distribution')
123
139
  .option('-f, --functions', descriptions.functions, { default: true })
@@ -36,6 +36,7 @@ export function deploy(buddy: CLI) {
36
36
  }
37
37
 
38
38
  // TODO: we can improve this check at some point, otherwise domains that legitimately include the word localhost will fail
39
+ // TODO: add check for whether the local APP_ENV is getting deployed, if so, ask if the user meant to deploy `dev`
39
40
  if (domain.includes('localhost')) {
40
41
  log.info('You are deploying to a local environment.')
41
42
  log.info('Please set your .env or ./config/app.ts properly.')
@@ -48,11 +49,10 @@ export function deploy(buddy: CLI) {
48
49
  }
49
50
 
50
51
  if (await hasUserDomainBeenAddedToCloud(domain)) {
51
- log.success('Your domain is properly configured.')
52
+ log.info('Domain is properly configured')
52
53
  log.info('Your cloud is deploying...')
53
54
 
54
55
  log.info(`${italic('This may take a while...')}`)
55
- await new Promise(resolve => setTimeout(resolve, 2000))
56
56
  options.domain = domain
57
57
 
58
58
  // now that we know the domain has been added to the users (AWS) cloud, we can deploy
@@ -14,6 +14,7 @@ export * from './fresh'
14
14
  export * from './generate'
15
15
  export * from './http'
16
16
  export * from './lint'
17
+ export * from './list'
17
18
  export * from './inspire'
18
19
  export * from './install'
19
20
  export * from './key'
@@ -0,0 +1,39 @@
1
+ import process from 'node:process'
2
+ import type { CLI } from '@stacksjs/types'
3
+ import { $ } from 'bun'
4
+ import { projectPath } from '@stacksjs/path'
5
+
6
+ export function list(buddy: CLI) {
7
+ const descriptions = {
8
+ list: 'List all of the project-specific Buddy commands',
9
+ project: 'Target a specific project',
10
+ verbose: 'Enable verbose output',
11
+ }
12
+
13
+ buddy
14
+ .command('list', descriptions.list)
15
+ .option('-p, --project', descriptions.project, { default: false })
16
+ .option('--verbose', descriptions.verbose, { default: false })
17
+ .action(async () => {
18
+ $.cwd(projectPath())
19
+ const test = await $`buddy --help`.text()
20
+ const commandsSection = test.match(/Commands:.*?(?=For more info, run any command with the)/s)?.[0]
21
+
22
+ if (commandsSection) {
23
+ const cleanedCommands = commandsSection
24
+ .replace('Commands:', '') // Remove "Commands:"
25
+ .replace(/^\s+/gm, '') // Trim leading whitespace from the start of each line
26
+
27
+ // eslint-disable-next-line no-console
28
+ console.log(cleanedCommands)
29
+ return
30
+ }
31
+
32
+ console.error('#1 - Please reach out to our Discord for helper: https://discord.gg/stacksjs')
33
+ })
34
+
35
+ buddy.on('list:*', () => {
36
+ console.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
37
+ process.exit(1)
38
+ })
39
+ }
@@ -1,14 +1,17 @@
1
1
  import process from 'node:process'
2
2
  import { path as p } from '@stacksjs/path'
3
3
  import { handleError } from '@stacksjs/error-handling'
4
- import { storage } from '@stacksjs/storage'
4
+ import { writeFile } from '@stacksjs/storage'
5
5
  import { log, runCommand } from '@stacksjs/cli'
6
6
  import { ExitCode } from '@stacksjs/types'
7
7
  import type { CLI, CliOptions } from '@stacksjs/types'
8
+ import { $ } from 'bun'
8
9
 
9
10
  export function setup(buddy: CLI) {
10
11
  const descriptions = {
11
12
  setup: 'This command ensures your project is setup correctly',
13
+ ohMyZsh: 'Enable Oh My Zsh',
14
+ aws: 'Ensures AWS is connected to the project',
12
15
  project: 'Target a specific project',
13
16
  verbose: 'Enable verbose output',
14
17
  }
@@ -28,6 +31,59 @@ export function setup(buddy: CLI) {
28
31
  await initializeProject(options)
29
32
  })
30
33
 
34
+ buddy
35
+ .command('setup:oh-my-zsh', descriptions.ohMyZsh) // if triggered multiple times, it will update the plugin
36
+ .option('--verbose', descriptions.verbose, { default: false })
37
+ .action(async (_options?: CliOptions) => {
38
+ const homePath = (await $`echo $HOME`.text()).trim()
39
+ const zshrcPath = p.join(homePath, '.zshrc')
40
+ const pluginPath = p.frameworkPath('core/zsh-buddy/buddy.plugin.zsh')
41
+ const customPath = p.join(homePath, '.oh-my-zsh/custom/plugins/buddy/')
42
+
43
+ log.info(`Setting up Oh My Zsh via ${zshrcPath}...`)
44
+ $.cwd(p.dirname(zshrcPath))
45
+ let data = await $`cat ${p.basename(zshrcPath)}`.text()
46
+
47
+ // Manipulate the data
48
+ const pluginLineRegex = /^(?!#).*plugins=\(([^)]+)\)/m // ensure it's not a comment
49
+ const match = data.match(pluginLineRegex)
50
+
51
+ if (match) {
52
+ // 1. Find the plugins line
53
+ const plugins = match[1].split(' ')
54
+
55
+ // 2. Add buddy to the list of plugins if it's not already there
56
+ if (!plugins.includes('buddy')) {
57
+ plugins.push('buddy')
58
+ const newPluginLine = `plugins=(${plugins.join(' ')})`
59
+ // 3. Replace the old plugin line with the new one
60
+ data = data.replace(pluginLineRegex, newPluginLine)
61
+ // 4. Write the data back to the file
62
+ await writeFile(zshrcPath, data)
63
+
64
+ // need to copy plugin to ~/.oh-my-zsh/custom/plugins
65
+ log.info(`Copying buddy zsh plugin ${pluginPath} to ${customPath}...`)
66
+
67
+ // create customPath if it doesn't exist
68
+ await runCommand(`mkdir -p ${customPath}`)
69
+ await runCommand(`cp -rf ${pluginPath} ${customPath}`)
70
+ // await runCommand(`source ${customPath}/buddy.plugin.zsh`)
71
+
72
+ log.success('Copied buddy zsh plugin')
73
+ }
74
+ else {
75
+ log.info('buddy is already integrated in your shell, updating...')
76
+ await runCommand(`cp -rf ${pluginPath} ${customPath}`)
77
+ // await runCommand(`source ${customPath}/buddy.plugin.zsh`)
78
+ log.success('Updated buddy zsh plugin')
79
+ }
80
+ }
81
+
82
+ log.success('Oh My Zsh setup complete.')
83
+ log.info('To see changes reflect, you may need to:')
84
+ log.info('⌘⇧P workbench.action.reloadWindow')
85
+ })
86
+
31
87
  buddy.on('setup:*', () => {
32
88
  console.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
33
89
  process.exit(ExitCode.FatalError)
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks framework build tools and configurations.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/bud",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/buddy",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/stack",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/stacks",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/stx",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -63,6 +63,7 @@
63
63
  "build:web-components": "bun run buddy build:web-components",
64
64
  "build:functions": "bun run buddy build:functions // needs to have option to ",
65
65
  "build:docs": "bun run buddy build:docs",
66
+ "build:server": "bun run buddy build:server",
66
67
  "build:stacks": "bun run buddy build:stacks",
67
68
  "prod": "bun run buddy build",
68
69
  "prod:components": "bun run buddy build:components",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-yaml",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "A Bun plugin to load yaml files",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Caching the Stacks way.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Easily interact with chat APIs.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -48,25 +48,25 @@
48
48
  "prepublishOnly": "bun --bun run build"
49
49
  },
50
50
  "peerDependencies": {
51
- "@novu/stateless": "^0.22.0",
51
+ "@novu/stateless": "^0.23.0",
52
52
  "@stacksjs/cli": "workspace:*",
53
53
  "@stacksjs/config": "workspace:*",
54
54
  "@stacksjs/error-handling": "workspace:*",
55
55
  "@stacksjs/types": "workspace:*"
56
56
  },
57
57
  "dependencies": {
58
- "@novu/stateless": "^0.22.0",
58
+ "@novu/stateless": "^0.23.0",
59
59
  "@stacksjs/cli": "workspace:*",
60
60
  "@stacksjs/config": "workspace:*",
61
61
  "@stacksjs/error-handling": "workspace:*",
62
62
  "@stacksjs/types": "workspace:*"
63
63
  },
64
64
  "optionalDependencies": {
65
- "@novu/discord": "^0.22.0",
66
- "@novu/ms-teams": "^0.22.0",
67
- "@novu/node": "^0.22.0",
68
- "@novu/slack": "^0.22.0",
69
- "@novu/stateless": "^0.22.0"
65
+ "@novu/discord": "^0.23.0",
66
+ "@novu/ms-teams": "^0.23.0",
67
+ "@novu/node": "^0.23.0",
68
+ "@novu/slack": "^0.23.0",
69
+ "@novu/stateless": "^0.23.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@stacksjs/development": "workspace:*"
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -14,7 +14,7 @@ async function installStack(name, options) {
14
14
  // src/cli.ts
15
15
  import cac from "cac";
16
16
  // package.json
17
- var version = "0.58.50";
17
+ var version = "0.58.52";
18
18
 
19
19
  // src/cli.ts
20
20
  function cli(name, options) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "TypeScript framework for CLI artisans. Build beautiful console apps with ease.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,6 +1,6 @@
1
1
  import { log, runCommand } from '@stacksjs/cli'
2
2
 
3
- await runCommand('bun build ./src/index.ts --outfile ./dist/index.js --outdir ./dist/ --external @aws-sdk/client-cloudformation --external @aws-sdk/client-cloudwatch-logs --external @aws-sdk/client-ec2 --external @aws-sdk/client-efs --external @aws-sdk/client-iam --external @aws-sdk/client-ssm --external @aws-sdk/lambda --external @aws-sdk/client-route-53-domains --external @aws-sdk/client-s3 --external @stacksjs/config --external @stacksjs/error-handling --external @stacksjs/logging --external @stacksjs/path --external @stacksjs/utils --external @stacksjs/strings --external aws-cdk-lib --external constructs --external @stacksjs/env --external @smithy/types --external @smithy/protocol-http --external @aws-sdk/middleware-logger --external @aws-sdk/middleware-recursion-detection --external @aws-sdk/middleware-host-header --external @smithy/property-provider --external @aws-crypto/crc32 --external @smithy/util-hex-encoding --external @smithy/smithy-client --external @smithy/signature-v4 --external @smithy/util-endpoints --external @aws-sdk/util-endpoints --external @smithy/util-middleware --external @aws-sdk/middleware-user-agent --external @smithy/util-config-provider --external @smithy/config-resolver --external @smithy/middleware-content-length --external @smithy/middleware-endpoint --external @smithy/util-retry --external @smithy/service-error-classification --external @smithy/middleware-retry --external @smithy/core --external @aws-sdk/core --external @smithy/middleware-serde --external fast-xml-parser --external @smithy/shared-ini-file-loader --external @smithy/credential-provider-imds --external @aws-sdk/credential-provider-env --external @aws-sdk/client-sso --external @aws-sdk/credential-provider-sso --external @aws-sdk/credential-provider-ini --external @aws-sdk/credential-provider-process --external @aws-sdk/credential-provider-web-identity --external universalify --external graceful-fs --external fs-extra --external fast-glob --external kleur --external @stacksjs/cli --external @aws-sdk/middleware-signing --external @smithy/eventstream-serde-config-resolver --external @aws-sdk/client-lambda --target bun', {
3
+ await runCommand('bun build ./src/index.ts --outfile ./dist/index.js --outdir ./dist/ --external @aws-sdk/client-cloudformation --external @aws-sdk/client-cloudwatch-logs --external @aws-sdk/client-ec2 --external @aws-sdk/client-efs --external @aws-sdk/client-iam --external @aws-sdk/client-ssm --external @aws-sdk/lambda --external @aws-sdk/client-route-53-domains --external @aws-sdk/client-s3 --external @stacksjs/config --external @stacksjs/error-handling --external @stacksjs/logging --external @stacksjs/path --external @stacksjs/utils --external @stacksjs/strings --external @stacksjs/storage --external aws-cdk-lib --external constructs --external @stacksjs/env --external @smithy/types --external @smithy/protocol-http --external @aws-sdk/middleware-logger --external @aws-sdk/middleware-recursion-detection --external @aws-sdk/middleware-host-header --external @smithy/property-provider --external @aws-crypto/crc32 --external @smithy/util-hex-encoding --external @smithy/smithy-client --external @smithy/signature-v4 --external @smithy/util-endpoints --external @aws-sdk/util-endpoints --external @smithy/util-middleware --external @aws-sdk/middleware-user-agent --external @smithy/util-config-provider --external @smithy/config-resolver --external @smithy/middleware-content-length --external @smithy/middleware-endpoint --external @smithy/util-retry --external @smithy/service-error-classification --external @smithy/middleware-retry --external @smithy/core --external @aws-sdk/core --external @smithy/middleware-serde --external fast-xml-parser --external @smithy/shared-ini-file-loader --external @smithy/credential-provider-imds --external @aws-sdk/credential-provider-env --external @aws-sdk/client-sso --external @aws-sdk/credential-provider-sso --external @aws-sdk/credential-provider-ini --external @aws-sdk/credential-provider-process --external @aws-sdk/credential-provider-web-identity --external universalify --external graceful-fs --external fs-extra --external fast-glob --external kleur --external @stacksjs/cli --external @aws-sdk/middleware-signing --external @smithy/eventstream-serde-config-resolver --external @aws-sdk/client-lambda --target bun', {
4
4
  cwd: import.meta.dir,
5
5
  })
6
6
 
@@ -12,7 +12,16 @@ import { getOrCreateTimestamp } from './src/helpers'
12
12
  import type { CloudOptions } from './src/types'
13
13
 
14
14
  const app = new App()
15
- const appEnv = config.app.env === 'local' ? 'dev' : config.app.env
15
+ const appEnv = (config.app.env as string) === 'local'
16
+ ? 'dev'
17
+ : (config.app.env as string) === 'development'
18
+ ? 'dev'
19
+ : (config.app.env as string) === 'staging'
20
+ ? 'stage'
21
+ : (config.app.env as string) === 'production'
22
+ ? 'prod'
23
+ : config.app.env
24
+
16
25
  const appKey = config.app.key
17
26
  const domain = config.app.url
18
27
  const appName = config.app.name?.toLowerCase() ?? 'stacks'