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.
- package/core/actions/dist/src/deploy/index.js +2 -2
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/build/cli.ts +1 -1
- package/core/actions/src/build/server.ts +9 -0
- package/core/actions/src/deploy/index.ts +2 -2
- package/core/actions/tsconfig.json +3 -0
- package/core/ai/package.json +1 -1
- package/core/ai/tsconfig.json +3 -0
- package/core/alias/package.json +1 -1
- package/core/alias/tsconfig.json +3 -0
- package/core/analytics/package.json +1 -1
- package/core/analytics/tsconfig.json +3 -0
- package/core/api/package.json +1 -1
- package/core/api/tsconfig.json +3 -0
- package/core/arrays/package.json +1 -1
- package/core/arrays/tsconfig.json +3 -0
- package/core/auth/package.json +1 -1
- package/core/auth/tsconfig.json +3 -0
- package/core/buddy/dist/{chunk-91084836e95161e8.js → chunk-d52e40a990b45728.js} +152 -84
- package/core/buddy/dist/cli.js +4 -1
- package/core/buddy/dist/index.js +3 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +2 -0
- package/core/buddy/src/commands/build.ts +17 -1
- package/core/buddy/src/commands/deploy.ts +2 -2
- package/core/buddy/src/commands/index.ts +1 -0
- package/core/buddy/src/commands/list.ts +39 -0
- package/core/buddy/src/commands/setup.ts +57 -1
- package/core/buddy/tsconfig.json +3 -0
- package/core/build/package.json +1 -1
- package/core/build/tsconfig.json +3 -0
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +2 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/bun-plugin-yaml/tsconfig.json +3 -0
- package/core/cache/package.json +1 -1
- package/core/cache/tsconfig.json +3 -0
- package/core/chat/package.json +8 -8
- package/core/chat/tsconfig.json +3 -0
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cli/tsconfig.json +3 -0
- package/core/cloud/build.ts +1 -1
- package/core/cloud/deploy.ts +10 -1
- package/core/cloud/dist/index.js +167 -807
- package/core/cloud/package.json +2 -3
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/cloud/src/cloud/cdn.ts +59 -6
- package/core/cloud/src/cloud/compute.ts +29 -19
- package/core/cloud/src/cloud/dns.ts +8 -0
- package/core/cloud/src/cloud/index.ts +8 -2
- package/core/cloud/src/cloud/queue.ts +46 -0
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/cloud/src/cloud/security.ts +1 -1
- package/core/cloud/src/helpers.ts +13 -1
- package/core/cloud/tsconfig.json +3 -0
- package/core/collections/package.json +1 -1
- package/core/collections/tsconfig.json +3 -0
- package/core/config/dist/index.js +154 -83
- package/core/config/package.json +2 -2
- package/core/config/tsconfig.json +3 -0
- package/core/database/package.json +1 -1
- package/core/database/src/kysely-bun-worker/mitt.ts +1 -1
- package/core/database/tsconfig.json +3 -0
- package/core/datetime/package.json +1 -1
- package/core/datetime/tsconfig.json +3 -0
- package/core/desktop/package.json +1 -1
- package/core/desktop/tsconfig.json +3 -0
- package/core/development/package.json +1 -1
- package/core/development/tsconfig.json +3 -0
- package/core/dns/package.json +1 -1
- package/core/dns/tsconfig.json +3 -0
- package/core/docs/package.json +1 -1
- package/core/docs/tsconfig.json +3 -0
- package/core/email/package.json +12 -12
- package/core/email/tsconfig.json +3 -0
- package/core/enums/dist/index.js +1 -0
- package/core/enums/package.json +1 -1
- package/core/enums/src/index.ts +1 -0
- package/core/enums/tsconfig.json +3 -0
- package/core/env/package.json +1 -1
- package/core/env/tsconfig.json +3 -0
- package/core/error-handling/package.json +1 -1
- package/core/error-handling/tsconfig.json +3 -0
- package/core/eslint-config/package.json +3 -3
- package/core/eslint-config/src/configs/typescript.ts +1 -0
- package/core/eslint-config/src/factory.ts +1 -0
- package/core/events/package.json +1 -1
- package/core/events/src/index.ts +3 -6
- package/core/events/tsconfig.json +3 -0
- package/core/faker/package.json +1 -1
- package/core/faker/tsconfig.json +3 -0
- package/core/git/package.json +1 -1
- package/core/git/tsconfig.json +3 -0
- package/core/health/package.json +1 -1
- package/core/health/tsconfig.json +3 -0
- package/core/http/package.json +1 -1
- package/core/http/tsconfig.json +3 -0
- package/core/lint/package.json +1 -1
- package/core/lint/tsconfig.json +3 -0
- package/core/logging/package.json +1 -1
- package/core/logging/tsconfig.json +3 -0
- package/core/notifications/package.json +22 -22
- package/core/notifications/tsconfig.json +3 -0
- package/core/objects/package.json +1 -1
- package/core/objects/tsconfig.json +3 -0
- package/core/orm/package.json +1 -1
- package/core/orm/tsconfig.json +3 -0
- package/core/path/package.json +1 -1
- package/core/path/tsconfig.json +3 -0
- package/core/payments/dist/index.js +21 -3
- package/core/payments/package.json +1 -1
- package/core/payments/tsconfig.json +3 -0
- package/core/push/package.json +5 -5
- package/core/push/tsconfig.json +3 -0
- package/core/query-builder/package.json +1 -1
- package/core/query-builder/tsconfig.json +3 -0
- package/core/queue/package.json +1 -1
- package/core/queue/tsconfig.json +3 -0
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/realtime/tsconfig.json +3 -0
- package/core/repl/package.json +1 -1
- package/core/repl/tsconfig.json +3 -0
- package/core/router/dist/index.js +3 -4
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +11 -11
- package/core/router/src/server.ts +4 -4
- package/core/router/tsconfig.json +3 -0
- package/core/scheduler/build.ts +1 -1
- package/core/scheduler/dist/index.js +682 -152
- package/core/scheduler/package.json +7 -4
- package/core/scheduler/src/constants.ts +81 -0
- package/core/scheduler/src/errors.ts +7 -0
- package/core/scheduler/src/index.ts +15 -317
- package/core/scheduler/src/job.ts +315 -0
- package/core/scheduler/src/schedule.ts +111 -0
- package/core/scheduler/src/time.ts +823 -0
- package/core/scheduler/src/types/cron.ts +98 -0
- package/core/scheduler/src/types/utils.ts +14 -0
- package/core/scheduler/src/utils.ts +19 -0
- package/core/scheduler/tests/cron.fuzz.ts +120 -0
- package/core/scheduler/tests/cron.test.ts +1241 -0
- package/core/scheduler/tests/crontime.test.ts +778 -0
- package/core/scheduler/tsconfig.json +3 -0
- package/core/search-engine/package.json +1 -1
- package/core/search-engine/tsconfig.json +3 -0
- package/core/security/package.json +1 -1
- package/core/security/tsconfig.json +3 -0
- package/core/server/package.json +1 -1
- package/core/server/tsconfig.json +3 -0
- package/core/signals/package.json +1 -1
- package/core/signals/tsconfig.json +3 -0
- package/core/slug/package.json +1 -1
- package/core/slug/tsconfig.json +3 -0
- package/core/sms/package.json +11 -11
- package/core/sms/tsconfig.json +3 -0
- package/core/storage/package.json +1 -1
- package/core/storage/tsconfig.json +3 -0
- package/core/strings/package.json +1 -1
- package/core/strings/tsconfig.json +3 -0
- package/core/tables/package.json +1 -1
- package/core/tables/tsconfig.json +3 -0
- package/core/testing/package.json +1 -1
- package/core/testing/tsconfig.json +3 -0
- package/core/tinker/package.json +1 -1
- package/core/tinker/tsconfig.json +3 -0
- package/core/tunnel/package.json +1 -1
- package/core/tunnel/tsconfig.json +3 -0
- package/core/types/package.json +3 -3
- package/core/types/src/app.ts +2 -2
- package/core/types/src/cli.ts +1 -1
- package/core/types/src/cloud.ts +5 -1
- package/core/types/src/cron-jobs.ts +1 -0
- package/core/types/src/queue.ts +3 -1
- package/core/types/tsconfig.json +3 -0
- package/core/ui/package.json +4 -4
- package/core/ui/tsconfig.json +3 -0
- package/core/utils/dist/index.js +1 -1
- package/core/utils/package.json +1 -1
- package/core/utils/src/promise.ts +2 -2
- package/core/utils/tsconfig.json +3 -0
- package/core/validation/package.json +1 -1
- package/core/validation/src/rules.ts +3 -3
- package/core/validation/tsconfig.json +3 -0
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/vite/tsconfig.json +3 -0
- package/core/whois/package.json +1 -1
- package/core/whois/tsconfig.json +3 -0
- package/core/x-ray/package.json +1 -1
- package/core/x-ray/tsconfig.json +3 -0
- package/core/zsh-buddy/README.md +6 -2
- package/core/zsh-buddy/buddy.plugin.zsh +109 -0
- package/core/zsh-buddy/package.json +1 -1
- package/ide/dictionary.txt +2 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
- package/buddy +0 -2
- package/core/actions/src/zip/api.ts +0 -22
- package/core/bud +0 -2
- package/core/cloud/buddy +0 -2
- package/core/cloud/src/cloud/package/README.md +0 -59
- package/core/cloud/src/cloud/package/package.json +0 -63
- package/core/scheduler/tests/example.test.ts +0 -5
package/core/buddy/dist/cli.js
CHANGED
|
@@ -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-
|
|
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);
|
package/core/buddy/dist/index.js
CHANGED
|
@@ -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-
|
|
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,
|
package/core/buddy/package.json
CHANGED
package/core/buddy/src/cli.ts
CHANGED
|
@@ -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',
|
|
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.
|
|
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
|
|
@@ -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 {
|
|
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)
|
package/core/build/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bun-examples/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
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",
|
package/core/cache/package.json
CHANGED
package/core/chat/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/chat",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
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.
|
|
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.
|
|
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.
|
|
66
|
-
"@novu/ms-teams": "^0.
|
|
67
|
-
"@novu/node": "^0.
|
|
68
|
-
"@novu/slack": "^0.
|
|
69
|
-
"@novu/stateless": "^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:*"
|
package/core/cli/dist/index.js
CHANGED
package/core/cli/package.json
CHANGED
package/core/cloud/build.ts
CHANGED
|
@@ -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
|
|
package/core/cloud/deploy.ts
CHANGED
|
@@ -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'
|
|
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'
|