stacks 0.58.59 → 0.58.60

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 (123) hide show
  1. package/core/actions/dist/src/clean.js +2 -2
  2. package/core/actions/dist/src/lint/fix.js +4 -1
  3. package/core/actions/dist/src/upgrade.js +10 -7
  4. package/core/actions/package.json +1 -1
  5. package/core/actions/src/action.ts +18 -8
  6. package/core/actions/src/clean.ts +2 -2
  7. package/core/actions/src/dev/api.ts +1 -2
  8. package/core/actions/src/domains/add.ts +12 -27
  9. package/core/actions/src/lint/fix.ts +6 -1
  10. package/core/actions/src/migrate/dns.ts +1 -1
  11. package/core/actions/src/upgrade.ts +5 -2
  12. package/core/ai/package.json +1 -1
  13. package/core/alias/package.json +1 -1
  14. package/core/analytics/package.json +1 -1
  15. package/core/api/package.json +1 -1
  16. package/core/arrays/package.json +1 -1
  17. package/core/auth/package.json +1 -1
  18. package/core/buddy/dist/{chunk-7b24d1e3e585766e.js → chunk-6658b07ce4c24cac.js} +62 -1
  19. package/core/buddy/dist/cli.js +1 -1
  20. package/core/buddy/dist/index.js +1 -1
  21. package/core/buddy/package.json +1 -1
  22. package/core/buddy/src/commands/build.ts +25 -25
  23. package/core/buddy/src/commands/deploy.ts +1 -1
  24. package/core/buddy/src/commands/dev.ts +33 -34
  25. package/core/buddy/src/commands/upgrade.ts +23 -24
  26. package/core/build/package.json +1 -1
  27. package/core/bun-create/bud/package.json +1 -1
  28. package/core/bun-create/buddy/package.json +1 -1
  29. package/core/bun-create/stack/package.json +1 -1
  30. package/core/bun-create/stacks/package.json +1 -1
  31. package/core/bun-create/stx/package.json +1 -1
  32. package/core/bun-plugin-yaml/package.json +1 -1
  33. package/core/cache/package.json +1 -1
  34. package/core/chat/package.json +1 -1
  35. package/core/cli/dist/index.js +27 -20
  36. package/core/cli/package.json +1 -1
  37. package/core/cli/src/console.ts +18 -18
  38. package/core/cli/src/exec.ts +9 -6
  39. package/core/cli/src/parse.ts +3 -3
  40. package/core/cloud/dist/index.js +1 -1
  41. package/core/cloud/package.json +2 -2
  42. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
  43. package/core/cloud/src/cloud/dashboard.ts +86 -85
  44. package/core/cloud/src/cloud/docs.ts +1 -1
  45. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  46. package/core/collections/package.json +1 -1
  47. package/core/config/dist/index.js +3 -3
  48. package/core/config/package.json +1 -1
  49. package/core/config/src/defaults.ts +4 -2
  50. package/core/database/package.json +1 -1
  51. package/core/database/src/kysely-bun-worker/worker.ts +0 -1
  52. package/core/datetime/package.json +1 -1
  53. package/core/desktop/package.json +1 -1
  54. package/core/development/package.json +1 -1
  55. package/core/dns/package.json +1 -1
  56. package/core/docs/package.json +1 -1
  57. package/core/email/package.json +2 -1
  58. package/core/email/src/server/converter.ts +19 -19
  59. package/core/email/src/server/inbound.ts +24 -8
  60. package/core/email/src/server/outbound.ts +17 -17
  61. package/core/enums/package.json +1 -1
  62. package/core/env/dist/index.js +1 -1
  63. package/core/env/package.json +1 -1
  64. package/core/error-handling/package.json +1 -1
  65. package/core/eslint-config/build.ts +1 -1
  66. package/core/eslint-config/package.json +3 -1
  67. package/core/eslint-config/test/cli.spec.ts +2 -1
  68. package/core/eslint-config/tsconfig.json +2 -2
  69. package/core/events/package.json +1 -1
  70. package/core/faker/package.json +1 -1
  71. package/core/git/package.json +1 -1
  72. package/core/health/package.json +1 -1
  73. package/core/http/package.json +1 -1
  74. package/core/lint/package.json +1 -1
  75. package/core/logging/build.ts +1 -1
  76. package/core/logging/dist/index.js +13 -11043
  77. package/core/logging/package.json +1 -1
  78. package/core/notifications/package.json +1 -1
  79. package/core/objects/package.json +1 -1
  80. package/core/orm/package.json +1 -1
  81. package/core/path/package.json +1 -1
  82. package/core/payments/package.json +1 -1
  83. package/core/push/package.json +1 -1
  84. package/core/query-builder/package.json +1 -1
  85. package/core/queue/package.json +1 -1
  86. package/core/raycast/package.json +1 -1
  87. package/core/realtime/package.json +1 -1
  88. package/core/repl/package.json +1 -1
  89. package/core/router/package.json +1 -1
  90. package/core/scheduler/package.json +2 -1
  91. package/core/scheduler/tests/cron.test.ts +11 -9
  92. package/core/search-engine/package.json +1 -1
  93. package/core/security/package.json +1 -1
  94. package/core/server/package.json +1 -1
  95. package/core/signals/package.json +1 -1
  96. package/core/slug/package.json +1 -1
  97. package/core/sms/package.json +1 -1
  98. package/core/storage/package.json +1 -1
  99. package/core/strings/package.json +1 -1
  100. package/core/tables/package.json +1 -1
  101. package/core/testing/package.json +5 -3
  102. package/core/tinker/package.json +1 -1
  103. package/core/tunnel/package.json +1 -1
  104. package/core/types/package.json +1 -1
  105. package/core/types/src/app.ts +1 -1
  106. package/core/types/src/docs.ts +3 -3
  107. package/core/types/src/team.ts +1 -1
  108. package/core/ui/package.json +2 -2
  109. package/core/utils/dist/index.js +12 -10
  110. package/core/utils/package.json +1 -1
  111. package/core/utils/src/hash.ts +9 -9
  112. package/core/validation/package.json +1 -1
  113. package/core/vite/dist/index.js +1 -1
  114. package/core/vite/package.json +1 -1
  115. package/core/vite/src/example-wc.ts +1 -4
  116. package/core/vite/src/plugin/auto-imports.ts +1 -2
  117. package/core/vite/src/plugin/components.ts +1 -2
  118. package/core/vite/src/plugin/docs.ts +1 -1
  119. package/core/whois/package.json +3 -3
  120. package/core/x-ray/package.json +1 -1
  121. package/core/zsh-buddy/package.json +3 -3
  122. package/ide/vscode/package.json +3 -4
  123. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/clean.ts
3
3
  import {log} from "@stacksjs/logging";
4
- import {clean} from "@stacksjs/utils";
4
+ import {cleanProject} from "@stacksjs/utils";
5
5
  log.info("Running clean command...");
6
- await clean();
6
+ await cleanProject();
@@ -5,5 +5,8 @@ import {projectPath} from "@stacksjs/path";
5
5
  import {NpmScript} from "@stacksjs/enums";
6
6
  log.info("Ensuring Code Style...");
7
7
  var options = parseOptions();
8
- await runCommand(NpmScript.LintFix, { cwd: projectPath() }, options);
8
+ await runCommand(NpmScript.LintFix, {
9
+ cwd: projectPath(),
10
+ ...options
11
+ });
9
12
  log.success("Linted");
@@ -5,33 +5,36 @@ import {intro, outro, runCommand} from "@stacksjs/cli";
5
5
  import {log} from "@stacksjs/logging";
6
6
  import {projectPath} from "@stacksjs/path";
7
7
  import * as storage from "@stacksjs/storage";
8
+ import {NpmScript} from "@stacksjs/enums";
8
9
  // package.json
9
- var version = "0.58.59";
10
+ var version = "0.58.60";
10
11
 
11
12
  // src/upgrade.ts
12
- function checkForUncommittedChanges(options2) {
13
+ function checkForUncommittedChanges(options) {
13
14
  try {
14
15
  } catch (error) {
15
16
  if (error.status === 1) {
16
- if (!options2?.force) {
17
+ if (!options?.force) {
17
18
  }
18
19
  }
19
20
  }
20
21
  }
21
- async function downloadFrameworkUpdate(options2) {
22
+ async function downloadFrameworkUpdate(options) {
22
23
  const tempFolderName = "updates";
23
24
  const tempUpdatePath = projectPath(tempFolderName);
24
25
  if (storage.doesFolderExist(tempUpdatePath))
25
26
  await deleteFolder(tempUpdatePath);
26
27
  log.info("Downloading framework updates...");
27
- await runCommand(`giget stacks ${tempFolderName}`, options2);
28
+ await runCommand(`giget stacks ${tempFolderName}`, options);
28
29
  log.success(`Your framework updated correctly to version: v${version}`);
29
30
  }
30
31
  async function updateDependencies() {
31
32
  const perf = await intro("buddy upgrade:dependencies");
32
- const result = await runCommand(NpmScript.UpgradeDependencies, options);
33
+ const result = await runCommand(NpmScript.UpgradeDependencies, {
34
+ cwd: projectPath()
35
+ });
33
36
  if (result.isErr()) {
34
- outro("While running the upgrade:dependencies command, there was an issue", { startTime: perf, useSeconds: true }, result.error);
37
+ await outro("While running the upgrade:dependencies command, there was an issue", { startTime: perf, useSeconds: true }, result.error);
35
38
  process.exit();
36
39
  }
37
40
  await outro("Freshly updated your dependencies.", { startTime: perf, useSeconds: true });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks actions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,15 +1,25 @@
1
1
  import type { JobOptions } from '@stacksjs/types'
2
2
 
3
+ interface ActionOptions {
4
+ name?: string
5
+ description?: string
6
+ handle: () => Promise<any> | any
7
+ rate?: JobOptions['rate']
8
+ tries?: JobOptions['tries']
9
+ backoff?: JobOptions['backoff']
10
+ enabled?: JobOptions['enabled']
11
+ }
12
+
3
13
  export class Action {
4
- name: string
5
- description: string
6
- rate: JobOptions['rate']
7
- tries: JobOptions['tries']
8
- backoff: JobOptions['backoff']
9
- enabled: JobOptions['enabled']
10
- handle: () => Promise<string>
14
+ name?: string
15
+ description?: string
16
+ rate?: JobOptions['rate']
17
+ tries?: JobOptions['tries']
18
+ backoff?: JobOptions['backoff']
19
+ enabled?: JobOptions['enabled']
20
+ handle: () => Promise<any>
11
21
 
12
- constructor({ name, description, handle, rate, tries, backoff, enabled }: { name: string, description: string, handle: () => Promise<string>, rate: JobOptions['rate'], tries: JobOptions['tries'], backoff: JobOptions['backoff'], enabled: JobOptions['enabled'] }) {
22
+ constructor({ name, description, handle, rate, tries, backoff, enabled }: ActionOptions) {
13
23
  this.name = name
14
24
  this.description = description
15
25
  this.rate = rate
@@ -1,6 +1,6 @@
1
1
  import { log } from '@stacksjs/logging'
2
- import { clean } from '@stacksjs/utils'
2
+ import { cleanProject } from '@stacksjs/utils'
3
3
 
4
4
  log.info('Running clean command...')
5
5
 
6
- await clean()
6
+ await cleanProject()
@@ -5,8 +5,7 @@ import { config } from '@stacksjs/config'
5
5
 
6
6
  const options = parseOptions()
7
7
 
8
- if (options.verbose)
9
- log.info('Running API dev server via', `bunx vite --config ${p.vitePath('src/api.ts')}`, options)
8
+ log.debug('Running API dev server via', `bunx vite --config ${p.vitePath('src/api.ts')}`, options)
10
9
 
11
10
  serve({
12
11
  port: config.app.ports?.api, // defaults to 3999
@@ -1,34 +1,20 @@
1
1
  import process from 'node:process'
2
2
  import { createHostedZone, getNameservers, updateNameservers } from '@stacksjs/dns'
3
3
  import { app } from '@stacksjs/config'
4
- import { handleError } from '@stacksjs/error-handling'
5
- import { italic, parseOptions, runCommand } from '@stacksjs/cli'
4
+ import { italic, log, parseOptions, runCommand } from '@stacksjs/cli'
6
5
  import { whois } from '@stacksjs/whois'
7
6
  import { logger } from '@stacksjs/logging'
8
7
  import { projectConfigPath } from '@stacksjs/path'
9
8
 
10
- interface AddOptions {
11
- domain?: string
12
- verbose: boolean
13
- }
14
-
15
- const parsedOptions = parseOptions()
16
- const options: AddOptions = {
17
- domain: parsedOptions.domain as string,
18
- verbose: parsedOptions.verbose as boolean,
19
- }
9
+ const options = parseOptions()
10
+ const domain = (options.domain as string | undefined) ?? app.url
20
11
 
21
- if (!options.domain) {
22
- if (app.url) {
23
- options.domain = app.url
24
- }
25
- else {
26
- handleError('there was no domain provided when')
27
- process.exit(1)
28
- }
12
+ if (!domain) {
13
+ log.error('There was no Domain or App URL provided. Please provide a domain using the --domain flag or add a url to your app config.')
14
+ process.exit(1)
29
15
  }
30
16
 
31
- const result = await createHostedZone(options.domain)
17
+ const result = await createHostedZone(domain)
32
18
 
33
19
  if (result.isErr()) {
34
20
  handleError(result.error)
@@ -36,22 +22,21 @@ if (result.isErr()) {
36
22
  }
37
23
 
38
24
  // Update the nameservers
39
- const nameServers = await getNameservers(options.domain)
25
+ const nameServers = await getNameservers(domain)
40
26
 
41
27
  if (!nameServers) {
42
- handleError(`No nameservers found for domain: ${options.domain}. Please ensure the Hosted Zone exists in Route53.`)
28
+ handleError(`No nameservers found for domain: ${domain}. Please ensure the Hosted Zone exists in Route53.`)
43
29
  process.exit(1)
44
30
  }
45
31
 
46
32
  await updateNameservers(nameServers)
47
33
 
48
- const nameservers = result.value
49
- const registrar: string = (await whois(options.domain, true)).parsedData.Registrar
34
+ const registrar: string = (await whois(domain, true)).parsedData.Registrar
50
35
 
51
36
  // usually for Route53 registered domains, we don't need to update create a hosted zone as it's already
52
37
  // done for us. But in case it's not, we still need to ensure it's created before we can deploy
53
38
  if (registrar.includes('Amazon')) {
54
- if (parsedOptions.deploy) {
39
+ if (options.deploy) {
55
40
  await runCommand('buddy deploy')
56
41
  }
57
42
  else {
@@ -70,7 +55,7 @@ logger.log(` update your ${registrar} nameservers to the following:`)
70
55
 
71
56
  const emojis = ['1️⃣', '2️⃣', '3️⃣', '4️⃣']
72
57
  logger.log('')
73
- nameservers.forEach((nameserver, index) => {
58
+ nameServers.forEach((nameserver: string, index: number) => {
74
59
  logger.log(` ${emojis[index]} Nameserver: ${nameserver}`)
75
60
  })
76
61
  logger.log('')
@@ -3,6 +3,11 @@ import { projectPath } from '@stacksjs/path'
3
3
  import { NpmScript } from '@stacksjs/enums'
4
4
 
5
5
  log.info('Ensuring Code Style...')
6
+
6
7
  const options = parseOptions()
7
- await runCommand(NpmScript.LintFix, { cwd: projectPath() }, options)
8
+ await runCommand(NpmScript.LintFix, {
9
+ cwd: projectPath(),
10
+ ...options,
11
+ })
12
+
8
13
  log.success('Linted')
@@ -1,3 +1,3 @@
1
- import { generateMigrations } from './generate'
1
+ import { generateMigrations } from '../generate'
2
2
 
3
3
  generateMigrations()
@@ -3,6 +3,7 @@ import { intro, outro, runCommand } from '@stacksjs/cli'
3
3
  import { log } from '@stacksjs/logging'
4
4
  import { projectPath } from '@stacksjs/path'
5
5
  import * as storage from '@stacksjs/storage'
6
+ import { NpmScript } from '@stacksjs/enums'
6
7
  import type { UpgradeOptions } from '@stacksjs/types'
7
8
  import { version } from '../package.json'
8
9
 
@@ -53,10 +54,12 @@ export async function downloadFrameworkUpdate(options: UpgradeOptions) {
53
54
  // export async function updateDependencies(options: UpgradeOptions) {
54
55
  export async function updateDependencies() {
55
56
  const perf = await intro('buddy upgrade:dependencies')
56
- const result = await runCommand(NpmScript.UpgradeDependencies, options)
57
+ const result = await runCommand(NpmScript.UpgradeDependencies, {
58
+ cwd: projectPath(),
59
+ })
57
60
 
58
61
  if (result.isErr()) {
59
- outro('While running the upgrade:dependencies command, there was an issue', { startTime: perf, useSeconds: true }, result.error)
62
+ await outro('While running the upgrade:dependencies command, there was an issue', { startTime: perf, useSeconds: true }, result.error)
60
63
  process.exit()
61
64
  }
62
65
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ai",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "Stacks Artificial Intelligence.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/alias",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks aliases.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/analytics",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "Stacks Analytics. Privacy-friendly.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/api",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks array utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/arrays",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks array utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "A more simplistic way to authenticate.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -63,6 +63,22 @@ function build(buddy) {
63
63
  default:
64
64
  break;
65
65
  }
66
+ if (hasNoOptions(options)) {
67
+ let answers = await log.prompt.require().multiselect(descriptions.select, {
68
+ options: [
69
+ { label: "Components", value: "components" },
70
+ { label: "Web Components", value: "web-components" },
71
+ { label: "Functions", value: "functions" },
72
+ { label: "Views", value: "views" },
73
+ { label: "Documentation", value: "docs" }
74
+ ]
75
+ });
76
+ if (answers !== null)
77
+ process.exit(ExitCode.InvalidArgument);
78
+ if (isString(answers))
79
+ answers = [answers];
80
+ options = answers.reduce((a, v) => ({ ...a, [v]: true }), {});
81
+ }
66
82
  await runAction(Action.BuildStacks, options);
67
83
  process.exit(ExitCode.Success);
68
84
  });
@@ -131,6 +147,9 @@ function build(buddy) {
131
147
  process.exit(1);
132
148
  });
133
149
  }
150
+ var hasNoOptions = function(options) {
151
+ return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.views && !options.docs && !options.stacks && !options.buddy;
152
+ };
134
153
 
135
154
  // src/commands/changelog.ts
136
155
  import process2 from "process";
@@ -732,7 +751,7 @@ async function configureDomain(domain, options, startTime) {
732
751
  }
733
752
  async function checkIfAwsIsConfigured() {
734
753
  log8.info("Ensuring AWS is configured...");
735
- const result = await runCommand4("buddy configure:aws --quiet", {
754
+ const result = await runCommand4("buddy configure:aws", {
736
755
  silent: true
737
756
  });
738
757
  if (result.isErr()) {
@@ -804,6 +823,30 @@ function dev(buddy) {
804
823
  default:
805
824
  }
806
825
  if (wantsInteractive(options)) {
826
+ const answer = await log9.prompt.require().select(descriptions.select, {
827
+ options: [
828
+ { value: "all", label: "All" },
829
+ { value: "frontend", label: "Frontend" },
830
+ { value: "api", label: "Backend" },
831
+ { value: "dashboard", label: "Dashboard" },
832
+ { value: "desktop", label: "Desktop" },
833
+ { value: "email", label: "Email" },
834
+ { value: "components", label: "Components" },
835
+ { value: "docs", label: "Documentation" }
836
+ ]
837
+ });
838
+ if (answer === "components") {
839
+ await runComponentsDevServer(options);
840
+ } else if (answer === "api") {
841
+ await runApiDevServer(options);
842
+ } else if (answer === "dashboard") {
843
+ await runDashboardDevServer(options);
844
+ } else if (answer === "docs") {
845
+ await runDocsDevServer(options);
846
+ } else {
847
+ log9.error("Invalid option during interactive mode");
848
+ process10.exit(ExitCode8.InvalidArgument);
849
+ }
807
850
  } else {
808
851
  if (options.components)
809
852
  await runComponentsDevServer(options);
@@ -1807,6 +1850,21 @@ function upgrade(buddy) {
1807
1850
  buddy.command("upgrade", descriptions2.command).option("-c, --framework", descriptions2.framework, { default: false }).option("-d, --dependencies", descriptions2.dependencies, { default: false }).option("-b, --bun", descriptions2.bun, { default: false }).option("-a, --all", descriptions2.all, { default: false }).option("-f, --force", descriptions2.force, { default: false }).option("-p, --project", descriptions2.project, { default: false }).option("--verbose", descriptions2.verbose, { default: false }).alias("update").example("buddy upgrade -a --verbose").action(async (options) => {
1808
1851
  log24.debug("Running `buddy upgrade` ...", options);
1809
1852
  const perf = await intro18("buddy upgrade");
1853
+ if (hasNoOptions2(options)) {
1854
+ let answers = await log24.prompt.require().multiselect(descriptions2.select, {
1855
+ options: [
1856
+ { value: "dependencies", label: "Dependencies" },
1857
+ { value: "framework", label: "Framework" },
1858
+ { value: "node", label: "Node.js" },
1859
+ { value: "package-manager", label: "Package Manager" }
1860
+ ]
1861
+ });
1862
+ if (answers !== null)
1863
+ process29.exit(ExitCode20.InvalidArgument);
1864
+ if (isString(answers))
1865
+ answers = [answers];
1866
+ options = answers.reduce((a, v) => ({ ...a, [v]: true }), {});
1867
+ }
1810
1868
  const result = await runAction17(Action17.Upgrade, options);
1811
1869
  if (result.isErr()) {
1812
1870
  await outro18("While running the buddy:upgrade command, there was an issue", { startTime: perf, useSeconds: true }, result.error);
@@ -1842,6 +1900,9 @@ function upgrade(buddy) {
1842
1900
  process29.exit(1);
1843
1901
  });
1844
1902
  }
1903
+ var hasNoOptions2 = function(options) {
1904
+ return !options.framework && !options.dependencies && !options.packageManager && !options.node && !options.all;
1905
+ };
1845
1906
 
1846
1907
  // src/commands/version.ts
1847
1908
  import process30 from "process";
@@ -19,7 +19,7 @@ list,
19
19
  release,
20
20
  setup,
21
21
  upgrade
22
- } from "./chunk-7b24d1e3e585766e.js";
22
+ } from "./chunk-6658b07ce4c24cac.js";
23
23
  import {
24
24
  __commonJS,
25
25
  __toESM
@@ -31,7 +31,7 @@ tinker,
31
31
  types,
32
32
  upgrade,
33
33
  version
34
- } from "./chunk-7b24d1e3e585766e.js";
34
+ } from "./chunk-6658b07ce4c24cac.js";
35
35
  import"./chunk-0455e53fab4244b1.js";
36
36
  import"./chunk-59a9de11428ba763.js";
37
37
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "Meet Buddy. The Stacks runtime.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -78,28 +78,28 @@ export function build(buddy: CLI) {
78
78
  }
79
79
 
80
80
  // TODO: uncomment this when prompt is available
81
- // if (hasNoOptions(options)) {
82
- // let answers = await prompt.require
83
- // .multiselect(descriptions.select, {
84
- // options: [
85
- // { label: 'Components', value: 'components' },
86
- // // { label: 'Vue Components', value: 'vue-components' },
87
- // { label: 'Web Components', value: 'web-components' },
88
- // { label: 'Functions', value: 'functions' },
89
- // { label: 'Views', value: 'views' },
90
- // { label: 'Documentation', value: 'docs' },
91
- // ],
92
- // })
93
- //
94
- // if (answers !== null)
95
- // process.exit(ExitCode.InvalidArgument)
96
- //
97
- // if (isString(answers))
98
- // answers = [answers]
99
- //
100
- // // creates an object out of array and sets answers to true
101
- // options = answers.reduce((a: any, v: any) => ({ ...a, [v]: true }), {})
102
- // }
81
+ if (hasNoOptions(options)) {
82
+ let answers = await log.prompt.require()
83
+ .multiselect(descriptions.select, {
84
+ options: [
85
+ { label: 'Components', value: 'components' },
86
+ // { label: 'Vue Components', value: 'vue-components' },
87
+ { label: 'Web Components', value: 'web-components' },
88
+ { label: 'Functions', value: 'functions' },
89
+ { label: 'Views', value: 'views' },
90
+ { label: 'Documentation', value: 'docs' },
91
+ ],
92
+ })
93
+
94
+ if (answers !== null)
95
+ process.exit(ExitCode.InvalidArgument)
96
+
97
+ if (isString(answers))
98
+ answers = [answers]
99
+
100
+ // creates an object out of array and sets answers to true
101
+ options = answers.reduce((a: any, v: any) => ({ ...a, [v]: true }), {})
102
+ }
103
103
 
104
104
  await runAction(Action.BuildStacks, options)
105
105
 
@@ -254,6 +254,6 @@ export function build(buddy: CLI) {
254
254
  })
255
255
  }
256
256
 
257
- // function hasNoOptions(options: BuildOptions) {
258
- // return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.views && !options.docs && !options.stacks && !options.buddy
259
- // }
257
+ function hasNoOptions(options: BuildOptions) {
258
+ return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.views && !options.docs && !options.stacks && !options.buddy
259
+ }
@@ -113,7 +113,7 @@ async function configureDomain(domain: string, options: DeployOptions, startTime
113
113
 
114
114
  async function checkIfAwsIsConfigured() {
115
115
  log.info('Ensuring AWS is configured...')
116
- const result = await runCommand('buddy configure:aws --quiet', {
116
+ const result = await runCommand('buddy configure:aws', {
117
117
  silent: true,
118
118
  })
119
119
 
@@ -91,40 +91,39 @@ export function dev(buddy: CLI) {
91
91
  }
92
92
 
93
93
  if (wantsInteractive(options)) {
94
- // TODO: uncomment this when prompt is available
95
- // const answer = await prompt.require()
96
- // .select(descriptions.select, {
97
- // options: [
98
- // { value: 'all', label: 'All' },
99
- // { value: 'frontend', label: 'Frontend' },
100
- // { value: 'api', label: 'Backend' },
101
- // { value: 'dashboard', label: 'Dashboard' },
102
- // { value: 'desktop', label: 'Desktop' },
103
- // { value: 'email', label: 'Email' },
104
- // { value: 'components', label: 'Components' },
105
- // { value: 'docs', label: 'Documentation' },
106
- // ],
107
- // })
108
- //
109
- // if (answer === 'components') {
110
- // await runComponentsDevServer(options)
111
- // }
112
- // else if (answer === 'api') {
113
- // await runApiDevServer(options)
114
- // }
115
- // else if (answer === 'dashboard') {
116
- // await runDashboardDevServer(options)
117
- // }
118
- // // else if (answer === 'email')
119
- // // await runEmailDevServer(options)
120
- // else if (answer === 'docs') {
121
- // await runDocsDevServer(options)
122
- // }
123
- //
124
- // else {
125
- // log.error('Invalid option during interactive mode')
126
- // process.exit(ExitCode.InvalidArgument)
127
- // }
94
+ const answer = await log.prompt.require()
95
+ .select(descriptions.select, {
96
+ options: [
97
+ { value: 'all', label: 'All' },
98
+ { value: 'frontend', label: 'Frontend' },
99
+ { value: 'api', label: 'Backend' },
100
+ { value: 'dashboard', label: 'Dashboard' },
101
+ { value: 'desktop', label: 'Desktop' },
102
+ { value: 'email', label: 'Email' },
103
+ { value: 'components', label: 'Components' },
104
+ { value: 'docs', label: 'Documentation' },
105
+ ],
106
+ })
107
+
108
+ if (answer === 'components') {
109
+ await runComponentsDevServer(options)
110
+ }
111
+ else if (answer === 'api') {
112
+ await runApiDevServer(options)
113
+ }
114
+ else if (answer === 'dashboard') {
115
+ await runDashboardDevServer(options)
116
+ }
117
+ // else if (answer === 'email')
118
+ // await runEmailDevServer(options)
119
+ else if (answer === 'docs') {
120
+ await runDocsDevServer(options)
121
+ }
122
+
123
+ else {
124
+ log.error('Invalid option during interactive mode')
125
+ process.exit(ExitCode.InvalidArgument)
126
+ }
128
127
  }
129
128
 
130
129
  else {