stacks 0.49.1 → 0.49.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.
Files changed (99) hide show
  1. package/README.md +2 -2
  2. package/buddy/README.md +2 -2
  3. package/buddy/package.json +3 -3
  4. package/buddy/src/commands/dev.ts +15 -2
  5. package/buddy/src/commands/fresh.ts +1 -1
  6. package/buddy/src/commands/lint.ts +2 -2
  7. package/buddy/src/commands/release.ts +8 -0
  8. package/components/vue/package.json +1 -1
  9. package/components/web/package.json +1 -1
  10. package/core/actions/package.json +3 -3
  11. package/core/actions/src/dev.ts +0 -2
  12. package/core/actions/src/helpers/utils.ts +2 -2
  13. package/core/actions/src/lint-fix.ts +1 -1
  14. package/core/ai/package.json +3 -3
  15. package/core/alias/package.json +3 -3
  16. package/core/arrays/package.json +3 -3
  17. package/core/arrays/src/index.ts +14 -0
  18. package/core/auth/package.json +3 -3
  19. package/core/build/package.json +3 -3
  20. package/core/cache/package.json +7 -5
  21. package/core/cache/src/drivers/memcached.ts +1 -1
  22. package/core/cache/src/drivers/upstash.ts +2 -0
  23. package/core/cache/src/index.ts +1 -0
  24. package/core/chat/package.json +3 -4
  25. package/core/cli/README.md +1 -1
  26. package/core/cli/package.json +3 -3
  27. package/core/cli/src/actions/run.ts +4 -1
  28. package/core/cli/src/helpers.ts +1 -1
  29. package/core/cloud/package.json +3 -3
  30. package/core/collections/package.json +3 -3
  31. package/core/config/package.json +3 -3
  32. package/core/dashboard/package.json +3 -3
  33. package/core/database/package.json +4 -4
  34. package/core/datetime/package.json +3 -3
  35. package/core/desktop/node_modules/.bin/tauri +2 -2
  36. package/core/desktop/package.json +4 -4
  37. package/core/docs/node_modules/.bin/vitepress +2 -2
  38. package/core/docs/package.json +4 -4
  39. package/core/domains/package.json +3 -3
  40. package/core/drivers/package.json +3 -3
  41. package/core/email/package.json +4 -4
  42. package/core/error-handling/package.json +3 -3
  43. package/core/events/package.json +3 -3
  44. package/core/git/node_modules/.bin/commitizen +2 -2
  45. package/core/git/node_modules/.bin/cz +2 -2
  46. package/core/git/node_modules/.bin/git-cz +2 -2
  47. package/core/git/package.json +3 -3
  48. package/core/health/package.json +3 -3
  49. package/core/lint/package.json +3 -3
  50. package/core/logging/package.json +3 -3
  51. package/core/modules/package.json +3 -3
  52. package/core/notifications/README.md +3 -0
  53. package/core/notifications/build.config.ts +1 -0
  54. package/core/notifications/package.json +6 -5
  55. package/core/notifications/src/index.ts +2 -2
  56. package/core/objects/package.json +3 -3
  57. package/core/objects/src/index.ts +17 -1
  58. package/core/path/package.json +3 -3
  59. package/core/payments/package.json +3 -3
  60. package/core/push/package.json +3 -4
  61. package/core/queue/README.md +59 -0
  62. package/core/{chat/node_modules/.bin/maizzle → queue/node_modules/.bin/mkdist} +2 -2
  63. package/core/{push/node_modules/.bin/maizzle → queue/node_modules/.bin/tsc} +2 -2
  64. package/core/{sms/node_modules/.bin/maizzle → queue/node_modules/.bin/tsserver} +2 -2
  65. package/core/queue/package.json +54 -0
  66. package/core/queue/src/index.ts +1 -0
  67. package/core/queue/tests/example.test.ts +7 -0
  68. package/core/realtime/package.json +3 -3
  69. package/core/router/package.json +3 -3
  70. package/core/search-engine/package.json +4 -4
  71. package/core/search-engine/src/index.ts +0 -1
  72. package/core/security/package.json +3 -3
  73. package/core/server/package.json +3 -3
  74. package/core/sms/package.json +3 -5
  75. package/core/storage/package.json +3 -3
  76. package/core/storage/src/index.ts +1 -3
  77. package/core/strings/package.json +3 -3
  78. package/core/tables/dist/index.html +15 -0
  79. package/core/tables/package.json +2 -2
  80. package/core/tables/vite.config.ts +1 -1
  81. package/core/testing/node_modules/.bin/vitest +2 -2
  82. package/core/testing/package.json +6 -6
  83. package/core/types/node_modules/.bin/vitepress +2 -2
  84. package/core/types/package.json +5 -5
  85. package/core/types/src/cli.ts +5 -5
  86. package/core/types/src/notifications.ts +2 -2
  87. package/core/ui/package.json +4 -4
  88. package/core/utils/node_modules/.bin/rimraf +2 -2
  89. package/core/utils/package.json +7 -7
  90. package/core/utils/src/base.ts +14 -5
  91. package/core/utils/src/equal.ts +27 -0
  92. package/core/utils/src/helpers.ts +2 -1
  93. package/core/utils/src/index.ts +5 -4
  94. package/core/utils/src/is.ts +11 -9
  95. package/core/utils/src/p.ts +4 -3
  96. package/core/utils/src/promise.ts +50 -17
  97. package/core/x-ray/package.json +3 -3
  98. package/functions/package.json +1 -1
  99. package/package.json +4 -4
package/README.md CHANGED
@@ -38,7 +38,7 @@ _Develop dynamic UIs with helpers for atomic design, and much more._
38
38
  - 🌐 **Web** _"a routing & templating engine that makes sense" using components—SSG & PWA ready_
39
39
  - 🖥️ **Desktop** _components as desktop elements_
40
40
  - 📚 **Library** _auto-builds component & function libraries_
41
- - ⚡️ Powered by Vue, Vite, UnoCSS & Tauri
41
+ - ⚡️ Powered by Nitro, Tauri, UnoCSS, Vite & Vue
42
42
 
43
43
  ### Stacks Functions
44
44
 
@@ -46,7 +46,7 @@ _Develop serverless (or server) functions with countless helpers to build scalab
46
46
 
47
47
  - 🪄 **AI** _deep OpenAI integration_
48
48
  - 🤖 **APIs** _scalability & maintainability built-in_
49
- - 🏎️ **Cache** _Redis, DynamoDB, SingleStore, and more_
49
+ - 🏎️ **Cache** _Redis, DynamoDB, Upstash, SingleStore, and more—serverless_
50
50
  - ⚙️ **CLIs** _create beautiful CLIs for Linux, Windows, and Mac—without requirements_
51
51
  - 📀 **Database** _MySQL, Postgres, PlanetScale, Supabase, Prisma, ..._
52
52
  - 👾 **Errors** _native type-safe error handling_
package/buddy/README.md CHANGED
@@ -38,7 +38,7 @@ _Develop dynamic UIs with helpers for atomic design, and much more._
38
38
  - 🌐 **Web** _"a routing & templating engine that makes sense" using components—SSG & PWA ready_
39
39
  - 🖥️ **Desktop** _components as desktop elements_
40
40
  - 📚 **Library** _auto-builds component & function libraries_
41
- - ⚡️ Powered by Vue, Vite, UnoCSS & Tauri
41
+ - ⚡️ Powered by Nitro, Tauri, UnoCSS, Vite & Vue
42
42
 
43
43
  ### Stacks Functions
44
44
 
@@ -46,7 +46,7 @@ _Develop serverless (or server) functions with countless helpers to build scalab
46
46
 
47
47
  - 🪄 **AI** _deep OpenAI integration_
48
48
  - 🤖 **APIs** _scalability & maintainability built-in_
49
- - 🏎️ **Cache** _Redis, DynamoDB, SingleStore, and more_
49
+ - 🏎️ **Cache** _Redis, DynamoDB, Upstash, SingleStore, and more—serverless_
50
50
  - ⚙️ **CLIs** _create beautiful CLIs for Linux, Windows, and Mac—without requirements_
51
51
  - 📀 **Database** _MySQL, Postgres, PlanetScale, Supabase, Prisma, ..._
52
52
  - 👾 **Errors** _native type-safe error handling_
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "Meet Buddy. The Stacks runtime.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  ],
52
52
  "engines": {
53
53
  "node": ">=v18.13.0",
54
- "pnpm": ">=7.25.0"
54
+ "pnpm": ">=7.25.1"
55
55
  },
56
56
  "scripts": {
57
57
  "buddy": "esno ./src/cli.ts",
@@ -1,7 +1,7 @@
1
1
  import { Action, ExitCode } from '@stacksjs/types'
2
2
  import { runAction } from '@stacksjs/actions'
3
3
  import type { CLI, DevOption, DevOptions } from '@stacksjs/types'
4
- import { intro, outro, prompts } from '@stacksjs/cli'
4
+ import { intro, log, outro, prompts } from '@stacksjs/cli'
5
5
  import { components, desktop, docs, functions, pages, invoke as startDevelopmentServer } from '@stacksjs/actions/dev'
6
6
 
7
7
  async function dev(buddy: CLI) {
@@ -60,7 +60,20 @@ async function dev(buddy: CLI) {
60
60
  const perf = await intro('buddy dev:components')
61
61
  const result = await runAction(Action.DevComponents, { ...options, debug: true })
62
62
 
63
- if (result.isErr()) {
63
+ if (options.debug)
64
+ log.info('result is', result)
65
+
66
+ // check if result is an array
67
+ if (Array.isArray(result)) {
68
+ // check if any of the items in the array is an error
69
+ if (result.some(item => item.isErr())) {
70
+ outro('While running the dev:components command, there was an issue', { startTime: perf, useSeconds: true, isError: true }, result.error)
71
+ process.exit()
72
+ }
73
+ }
74
+
75
+ // check if result is an error
76
+ else if (result.isErr()) {
64
77
  outro('While running the dev:components command, there was an issue', { startTime: perf, useSeconds: true, isError: true }, result.error)
65
78
  process.exit()
66
79
  }
@@ -14,7 +14,7 @@ async function fresh(buddy: CLI) {
14
14
  .option('--debug', descriptions.debug, { default: false })
15
15
  .action(async (options: FreshOptions) => {
16
16
  const perf = await intro('buddy fresh')
17
- const result = await runAction(Action.Fresh, { ...options, shouldShowSpinner: true, spinnerText: 'Reinstalling dependencies...' })
17
+ const result = await runAction(Action.Fresh, { ...options, showSpinner: true, spinnerText: 'Freshly installing dependencies...' })
18
18
 
19
19
  if (result.isErr()) {
20
20
  outro('While running the fresh command, there was an issue', { startTime: perf, useSeconds: true, isError: true }, result.error)
@@ -16,7 +16,7 @@ async function lint(buddy: CLI) {
16
16
  .option('--debug', descriptions.debug, { default: false })
17
17
  .action(async (options: LintOptions) => {
18
18
  const perf = await intro('buddy lint')
19
- const result = await runAction(Action.Lint, { ...options, shouldShowSpinner: true, spinnerText: 'Linting...' })
19
+ const result = await runAction(Action.Lint, { ...options, showSpinner: true, spinnerText: 'Linting...' })
20
20
 
21
21
  if (result.isErr()) {
22
22
  outro('While running `buddy lint`, there was an issue', { startTime: perf, useSeconds: true, isError: true }, result.error)
@@ -31,7 +31,7 @@ async function lint(buddy: CLI) {
31
31
  .option('--debug', descriptions.debug, { default: false })
32
32
  .action(async (options: LintOptions) => {
33
33
  log.info('Fixing lint errors...')
34
- const result = await runAction(Action.LintFix, { ...options, shouldShowSpinner: true, spinnerText: 'Linting...' })
34
+ const result = await runAction(Action.LintFix, { ...options, showSpinner: true, spinnerText: 'Linting...' })
35
35
 
36
36
  if (result.isErr()) {
37
37
  log.error('There was an error lint fixing your code.', result.error)
@@ -16,6 +16,14 @@ async function release(buddy: CLI) {
16
16
  const startTime = await intro('buddy release')
17
17
  const result = await runAction(Action.Release, options)
18
18
 
19
+ console.log('result', result)
20
+
21
+ // check if any element of the array is an error
22
+ if (Array.isArray(result) && result.some(r => r.isErr())) {
23
+ log.error('Failed to trigger the CI/CD release workflow.', result)
24
+ process.exit()
25
+ }
26
+
19
27
  if (result.isErr()) {
20
28
  log.error('Failed to trigger the CI/CD release workflow.', result.error)
21
29
  process.exit()
@@ -2,7 +2,7 @@
2
2
  "name": "hello-world-vue",
3
3
  "type": "module",
4
4
  "version": "",
5
- "packageManager": "pnpm@7.25.0",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "Your Vue component library description",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  "name": "hello-world-elements",
3
3
  "type": "module",
4
4
  "version": "",
5
- "packageManager": "pnpm@7.25.0",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "Your framework agnostic web component library description.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks actions.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "engines": {
39
39
  "node": ">=v18.13.0",
40
- "pnpm": ">=7.25.0"
40
+ "pnpm": ">=7.25.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "mkdist -d",
@@ -33,8 +33,6 @@ export async function dev(options: DevOptions) {
33
33
  }
34
34
 
35
35
  export async function components(options: DevOptions) {
36
- // eslint-disable-next-line no-console
37
- console.log('here?')
38
36
  log.info('Starting your components dev server...')
39
37
  await runNpmScript(NpmScript.DevComponents, options)
40
38
  }
@@ -35,7 +35,7 @@ export type ActionResult = Promise<
35
35
  */
36
36
  export async function runAction(action: string, options?: CliOptions): Promise<
37
37
  Result<CommandResult<string>, Error>
38
- // | Result<CommandResult<string>, Error>[]
38
+ | Result<CommandResult<string>, Error>[]
39
39
  | Err<CommandResult<string>, string>
40
40
  > {
41
41
  if (!hasAction(action))
@@ -48,7 +48,7 @@ export async function runAction(action: string, options?: CliOptions): Promise<
48
48
  if (options?.debug)
49
49
  log.info('Running command:', cmd, options)
50
50
 
51
- return options?.shouldShowSpinner
51
+ return options?.showSpinner
52
52
  ? await runCommands([cmd], options)
53
53
  : await runCommand(cmd, options)
54
54
  }
@@ -2,4 +2,4 @@ import { runCommands } from '@stacksjs/cli'
2
2
  import { projectPath } from '@stacksjs/path'
3
3
  import { NpmScript } from '@stacksjs/types'
4
4
 
5
- await runCommands([NpmScript.LintFix], { cwd: projectPath(), shouldShowSpinner: true, spinnerText: 'Auto-fixing lint issues...' })
5
+ await runCommands([NpmScript.LintFix], { cwd: projectPath(), showSpinner: true, spinnerText: 'Auto-fixing lint issues...' })
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/ai",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "Stacks Artificial Intelligence.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "engines": {
37
37
  "node": ">=v18.13.0",
38
- "pnpm": ">=7.25.0"
38
+ "pnpm": ">=7.25.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/alias",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks aliases.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "engines": {
34
34
  "node": ">=v18.13.0",
35
- "pnpm": ">=7.25.0"
35
+ "pnpm": ">=7.25.1"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/arrays",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks array utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.13.0",
39
- "pnpm": ">=7.25.0"
39
+ "pnpm": ">=7.25.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "mkdist -d",
@@ -89,6 +89,20 @@ export function uniq<T>(array: readonly T[]): T[] {
89
89
  return Array.from(new Set(array))
90
90
  }
91
91
 
92
+ /**
93
+ * Unique an Array by a custom equality function
94
+ *
95
+ * @category Array
96
+ */
97
+ export function uniqueBy<T>(array: readonly T[], equalFn: (a: any, b: any) => boolean): T[] {
98
+ return array.reduce((acc: T[], cur: any) => {
99
+ const index = acc.findIndex((item: any) => equalFn(cur, item))
100
+ if (index === -1)
101
+ acc.push(cur)
102
+ return acc
103
+ }, [])
104
+ }
105
+
92
106
  /**
93
107
  * Get last item
94
108
  *
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "A more simplistic way to authenticate.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "engines": {
35
35
  "node": ">=v18.13.0",
36
- "pnpm": ">=7.25.0"
36
+ "pnpm": ">=7.25.1"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework build tools and configurations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "engines": {
37
37
  "node": ">=v18.13.0",
38
- "pnpm": ">=7.25.0"
38
+ "pnpm": ">=7.25.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "mkdist -d",
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
6
- "description": "The Stacks way to test.",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
+ "description": "The Stacks way of caching.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
9
9
  "funding": "https://github.com/sponsors/chrisbbreuer",
@@ -18,7 +18,9 @@
18
18
  },
19
19
  "keywords": [
20
20
  "cache",
21
+ "serverless",
21
22
  "redis",
23
+ "upstash",
22
24
  "dynamodb",
23
25
  "utilities",
24
26
  "functions",
@@ -36,7 +38,7 @@
36
38
  ],
37
39
  "engines": {
38
40
  "node": ">=v18.13.0",
39
- "pnpm": ">=7.25.0"
41
+ "pnpm": ">=7.25.1"
40
42
  },
41
43
  "scripts": {
42
44
  "build": "mkdist -d",
@@ -45,7 +47,7 @@
45
47
  "typecheck": "tsc --noEmit"
46
48
  },
47
49
  "peerDependencies": {
48
- "@aws-sdk/client-dynamodb": "^3.245.0",
50
+ "@aws-sdk/client-dynamodb": "^3.252.0",
49
51
  "@stacksjs/config": "workspace:*",
50
52
  "@types/memjs": "^1.2.5",
51
53
  "memcached": "^2.2.2",
@@ -10,7 +10,7 @@ async function set(key: string, value: any, duration: number): Promise<void> {
10
10
  async function get(key: string): Promise<any> {
11
11
  const value = await client.get(key)
12
12
 
13
- return value.value.toString()
13
+ return value.toString()
14
14
  }
15
15
 
16
16
  async function del(key: string): Promise<void> {
@@ -0,0 +1,2 @@
1
+ // wip
2
+ export {}
@@ -1,3 +1,4 @@
1
1
  export * as redis from './drivers/redis'
2
2
  export * as memcached from './drivers/memcached'
3
3
  export * as dynamodb from './drivers/dynamodb'
4
+ export * as upstash from './drivers/upstash'
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Chat Integration. Easy sending of messages for chat services",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "engines": {
36
36
  "node": ">=v18.13.0",
37
- "pnpm": ">=7.25.0"
37
+ "pnpm": ">=7.25.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "mkdist -d",
@@ -43,7 +43,6 @@
43
43
  "typecheck": "tsc --noEmit"
44
44
  },
45
45
  "peerDependencies": {
46
- "@maizzle/framework": "latest",
47
46
  "@novu/discord": "^0.10.2",
48
47
  "@novu/node": "^0.10.2",
49
48
  "@novu/slack": "^0.10.2",
@@ -51,7 +51,7 @@ async function install() {
51
51
  try {
52
52
  const spin = spinner('Running...').start()
53
53
  setTimeout(() => {
54
- spin.text = italic('Running. This may take a few moments...')
54
+ spin.text = italic('This may take a few moments...')
55
55
  }, 5000)
56
56
  await spawn('pnpm install')
57
57
  spin.stop()
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The simple way to create beautiful CLIs.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "engines": {
43
43
  "node": ">=v18.13.0",
44
- "pnpm": ">=7.25.0"
44
+ "pnpm": ">=7.25.1"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "mkdist -d",
@@ -60,8 +60,11 @@ export async function runCommands(commands: string[], options?: CliOptions): Pro
60
60
  results.push(result)
61
61
 
62
62
  if (result?.isErr()) {
63
- if (spinner)
63
+ if (spinner) {
64
64
  spinner.fail('Failed to run command.')
65
+ err(result.error)
66
+ process.exit()
67
+ }
65
68
 
66
69
  results.push(result)
67
70
  break
@@ -54,7 +54,7 @@ export function startSpinner(text?: string) {
54
54
  }).start()
55
55
 
56
56
  setTimeout(() => {
57
- spin.text = italic('Running. This may take a few moments...')
57
+ spin.text = italic('This may take a few moments...')
58
58
  spin.spinner = 'clock'
59
59
  }, 7500)
60
60
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cloud",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks cloud/serverless integration & implementation.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "engines": {
39
39
  "node": ">=v18.13.0",
40
- "pnpm": ">=7.25.0"
40
+ "pnpm": ">=7.25.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/collections",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks collections.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "engines": {
39
39
  "node": ">=v18.13.0",
40
- "pnpm": ">=7.25.0"
40
+ "pnpm": ">=7.25.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks configuration.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "engines": {
34
34
  "node": ">=v18.13.0",
35
- "pnpm": ">=7.25.0"
35
+ "pnpm": ">=7.25.1"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "unbuild",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/dashboard",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Dashboard.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "engines": {
39
39
  "node": ">=v18.13.0",
40
- "pnpm": ">=7.25.0"
40
+ "pnpm": ">=7.25.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks database integration.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "engines": {
41
41
  "node": ">=v18.13.0",
42
- "pnpm": ">=7.25.0"
42
+ "pnpm": ">=7.25.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "mkdist -d",
@@ -48,7 +48,7 @@
48
48
  "typecheck": "tsc --noEmit"
49
49
  },
50
50
  "peerDependencies": {
51
- "@prisma/client": "^4.8.1",
51
+ "@prisma/client": "^4.9.0",
52
52
  "@stacksjs/utils": "workspace:*"
53
53
  },
54
54
  "devDependencies": {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/datetime",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks datetime helpers.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.13.0",
39
- "pnpm": ">=7.25.0"
39
+ "pnpm": ">=7.25.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "mkdist -d",
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/@tauri-apps+cli@1.2.2/node_modules/@tauri-apps/cli/tauri.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/@tauri-apps+cli@1.2.3/node_modules/@tauri-apps/cli/tauri.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/@tauri-apps+cli@1.2.2/node_modules/@tauri-apps/cli/tauri.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/@tauri-apps+cli@1.2.3/node_modules/@tauri-apps/cli/tauri.js" "$@"
17
17
  fi