stacks 0.58.67 → 0.58.69
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/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/dist/{chunk-6658b07ce4c24cac.js → chunk-89229d657386eb70.js} +17 -14
- package/core/buddy/dist/cli.js +1 -1
- package/core/buddy/dist/index.js +3 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/commands/setup.ts +19 -14
- package/core/build/package.json +1 -1
- 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 +1 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +1 -1
- package/core/chat/package.json +1 -1
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cloud/dist/index.js +2 -2
- package/core/cloud/package.json +1 -1
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/cloud/src/cloud/compute.ts +2 -2
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +1 -1
- package/core/docs/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/enums/package.json +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +1 -1
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/payments/dist/index.js +29 -40
- package/core/payments/package.json +1 -1
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +1 -1
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/dist/index.js +541 -3
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +10 -2
- package/core/router/src/server.ts +15 -1
- package/core/scheduler/package.json +1 -1
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +1 -1
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +1 -1
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/ui/package.json +1 -1
- package/core/utils/dist/index.js +1 -1
- package/core/utils/package.json +1 -1
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/package.json +1 -1
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import {projectPath} from "@stacksjs/path";
|
|
|
7
7
|
import * as storage from "@stacksjs/storage";
|
|
8
8
|
import {NpmScript} from "@stacksjs/enums";
|
|
9
9
|
// package.json
|
|
10
|
-
var version = "0.58.
|
|
10
|
+
var version = "0.58.69";
|
|
11
11
|
|
|
12
12
|
// src/upgrade.ts
|
|
13
13
|
function checkForUncommittedChanges(options) {
|
package/core/ai/package.json
CHANGED
package/core/alias/package.json
CHANGED
package/core/api/package.json
CHANGED
package/core/arrays/package.json
CHANGED
package/core/auth/package.json
CHANGED
|
@@ -1659,19 +1659,7 @@ async function initializeProject(options) {
|
|
|
1659
1659
|
process25.exit(ExitCode18.FatalError);
|
|
1660
1660
|
}
|
|
1661
1661
|
log22.success("Installed node_modules");
|
|
1662
|
-
|
|
1663
|
-
if (storage.doesNotExist(p4.projectPath(".env"))) {
|
|
1664
|
-
const envResult = await runCommand8("cp .env.example .env", {
|
|
1665
|
-
cwd: options.cwd || p4.projectPath()
|
|
1666
|
-
});
|
|
1667
|
-
if (envResult.isErr()) {
|
|
1668
|
-
handleError2(envResult.error);
|
|
1669
|
-
process25.exit(ExitCode18.FatalError);
|
|
1670
|
-
}
|
|
1671
|
-
log22.success(".env created");
|
|
1672
|
-
} else {
|
|
1673
|
-
log22.success(".env existed");
|
|
1674
|
-
}
|
|
1662
|
+
ensureEnvIsSet(options);
|
|
1675
1663
|
const keyResult = await runCommand8("buddy key:generate", {
|
|
1676
1664
|
cwd: options.cwd || p4.projectPath()
|
|
1677
1665
|
});
|
|
@@ -1694,6 +1682,21 @@ async function initializeProject(options) {
|
|
|
1694
1682
|
async function optimizePkgxDeps() {
|
|
1695
1683
|
return new Promise((resolve2) => setTimeout(resolve2, 300));
|
|
1696
1684
|
}
|
|
1685
|
+
async function ensureEnvIsSet(options) {
|
|
1686
|
+
log22.info("Ensuring .env exists...");
|
|
1687
|
+
if (storage.doesNotExist(p4.projectPath(".env"))) {
|
|
1688
|
+
const envResult = await runCommand8("cp .env.example .env", {
|
|
1689
|
+
cwd: options.cwd || p4.projectPath()
|
|
1690
|
+
});
|
|
1691
|
+
if (envResult.isErr()) {
|
|
1692
|
+
handleError2(envResult.error);
|
|
1693
|
+
process25.exit(ExitCode18.FatalError);
|
|
1694
|
+
}
|
|
1695
|
+
log22.success(".env created");
|
|
1696
|
+
} else {
|
|
1697
|
+
log22.success(".env existed");
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1697
1700
|
|
|
1698
1701
|
// src/commands/test.ts
|
|
1699
1702
|
import process26 from "process";
|
|
@@ -1926,4 +1929,4 @@ function version(buddy) {
|
|
|
1926
1929
|
process30.exit(1);
|
|
1927
1930
|
});
|
|
1928
1931
|
}
|
|
1929
|
-
export { build, changelog, clean, cloud2 as cloud, commit, configure, create, deploy, dev, startDevelopmentServer, domains, dns3 as dns, fresh, generate, http, lint, list, install2 as install, key, make, migrate, prepublish, release, seed, setup, optimizePkgxDeps, test, tinker, types20 as types, upgrade, version };
|
|
1932
|
+
export { build, changelog, clean, cloud2 as cloud, commit, configure, create, deploy, dev, startDevelopmentServer, domains, dns3 as dns, fresh, generate, http, lint, list, install2 as install, key, make, migrate, prepublish, release, seed, setup, optimizePkgxDeps, ensureEnvIsSet, test, tinker, types20 as types, upgrade, version };
|
package/core/buddy/dist/cli.js
CHANGED
package/core/buddy/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ deploy,
|
|
|
11
11
|
dev,
|
|
12
12
|
dns,
|
|
13
13
|
domains,
|
|
14
|
+
ensureEnvIsSet,
|
|
14
15
|
fresh,
|
|
15
16
|
generate,
|
|
16
17
|
http,
|
|
@@ -31,7 +32,7 @@ tinker,
|
|
|
31
32
|
types,
|
|
32
33
|
upgrade,
|
|
33
34
|
version
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-89229d657386eb70.js";
|
|
35
36
|
import"./chunk-0455e53fab4244b1.js";
|
|
36
37
|
import"./chunk-59a9de11428ba763.js";
|
|
37
38
|
export {
|
|
@@ -55,6 +56,7 @@ export {
|
|
|
55
56
|
http,
|
|
56
57
|
generate,
|
|
57
58
|
fresh,
|
|
59
|
+
ensureEnvIsSet,
|
|
58
60
|
domains,
|
|
59
61
|
dns,
|
|
60
62
|
dev,
|
package/core/buddy/package.json
CHANGED
|
@@ -132,21 +132,8 @@ async function initializeProject(options: CliOptions): Promise<void> {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
log.success('Installed node_modules')
|
|
135
|
-
log.info('Ensuring .env exists...')
|
|
136
|
-
|
|
137
|
-
if (storage.doesNotExist(p.projectPath('.env'))) {
|
|
138
|
-
const envResult = await runCommand('cp .env.example .env', {
|
|
139
|
-
cwd: options.cwd || p.projectPath(),
|
|
140
|
-
})
|
|
141
|
-
|
|
142
|
-
if (envResult.isErr()) {
|
|
143
|
-
handleError(envResult.error)
|
|
144
|
-
process.exit(ExitCode.FatalError)
|
|
145
|
-
}
|
|
146
135
|
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
else { log.success('.env existed') }
|
|
136
|
+
ensureEnvIsSet(options)
|
|
150
137
|
|
|
151
138
|
const keyResult = await runCommand('buddy key:generate', {
|
|
152
139
|
cwd: options.cwd || p.projectPath(),
|
|
@@ -179,3 +166,21 @@ async function initializeProject(options: CliOptions): Promise<void> {
|
|
|
179
166
|
export async function optimizePkgxDeps(): Promise<void> {
|
|
180
167
|
return new Promise(resolve => setTimeout(resolve, 300))
|
|
181
168
|
}
|
|
169
|
+
|
|
170
|
+
export async function ensureEnvIsSet(options: CliOptions): Promise<void> {
|
|
171
|
+
log.info('Ensuring .env exists...')
|
|
172
|
+
|
|
173
|
+
if (storage.doesNotExist(p.projectPath('.env'))) {
|
|
174
|
+
const envResult = await runCommand('cp .env.example .env', {
|
|
175
|
+
cwd: options.cwd || p.projectPath(),
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
if (envResult.isErr()) {
|
|
179
|
+
handleError(envResult.error)
|
|
180
|
+
process.exit(ExitCode.FatalError)
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
log.success('.env created')
|
|
184
|
+
}
|
|
185
|
+
else { log.success('.env existed') }
|
|
186
|
+
}
|
package/core/build/package.json
CHANGED
package/core/cache/package.json
CHANGED
package/core/chat/package.json
CHANGED
package/core/cli/dist/index.js
CHANGED
|
@@ -502,7 +502,7 @@ import {log as log3} from "@stacksjs/logging";
|
|
|
502
502
|
import {ExitCode as ExitCode2} from "@stacksjs/types";
|
|
503
503
|
import {bgCyan as bgCyan2, bold as bold2, cyan as cyan2, dim as dim2, gray as gray2, green as green2, italic as italic2} from "kolorist";
|
|
504
504
|
// package.json
|
|
505
|
-
var version = "0.58.
|
|
505
|
+
var version = "0.58.69";
|
|
506
506
|
|
|
507
507
|
// src/helpers.ts
|
|
508
508
|
async function intro(command2, options) {
|
package/core/cli/package.json
CHANGED
package/core/cloud/dist/index.js
CHANGED
|
@@ -1664,7 +1664,7 @@ class ComputeStack {
|
|
|
1664
1664
|
})
|
|
1665
1665
|
}),
|
|
1666
1666
|
healthCheck: {
|
|
1667
|
-
command: ["CMD-SHELL", "curl -f http://localhost:3000/api/
|
|
1667
|
+
command: ["CMD-SHELL", "curl -f http://localhost:3000/api/health || exit 1"],
|
|
1668
1668
|
interval: Duration6.seconds(10),
|
|
1669
1669
|
timeout: Duration6.seconds(5),
|
|
1670
1670
|
retries: 3,
|
|
@@ -1713,7 +1713,7 @@ class ComputeStack {
|
|
|
1713
1713
|
port: 3000,
|
|
1714
1714
|
healthCheck: {
|
|
1715
1715
|
interval: Duration6.seconds(6),
|
|
1716
|
-
path: "/api/
|
|
1716
|
+
path: "/api/health",
|
|
1717
1717
|
protocol: elbv2.Protocol.HTTP,
|
|
1718
1718
|
timeout: Duration6.seconds(5),
|
|
1719
1719
|
healthyThresholdCount: 2,
|
package/core/cloud/package.json
CHANGED
|
@@ -53,7 +53,7 @@ export class ComputeStack {
|
|
|
53
53
|
}),
|
|
54
54
|
}),
|
|
55
55
|
healthCheck: {
|
|
56
|
-
command: ['CMD-SHELL', 'curl -f http://localhost:3000/api/
|
|
56
|
+
command: ['CMD-SHELL', 'curl -f http://localhost:3000/api/health || exit 1'], // requires curl inside the container which isn't available in the base image. I wonder if there is a better way
|
|
57
57
|
interval: Duration.seconds(10),
|
|
58
58
|
timeout: Duration.seconds(5),
|
|
59
59
|
retries: 3,
|
|
@@ -114,7 +114,7 @@ export class ComputeStack {
|
|
|
114
114
|
port: 3000,
|
|
115
115
|
healthCheck: {
|
|
116
116
|
interval: Duration.seconds(6),
|
|
117
|
-
path: '/api/
|
|
117
|
+
path: '/api/health',
|
|
118
118
|
protocol: elbv2.Protocol.HTTP,
|
|
119
119
|
timeout: Duration.seconds(5),
|
|
120
120
|
healthyThresholdCount: 2,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks-router-layer",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.69",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@stacksjs/router": "^0.58.
|
|
13
|
+
"@stacksjs/router": "^0.58.67"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/core/config/package.json
CHANGED
package/core/dns/package.json
CHANGED
package/core/docs/package.json
CHANGED
package/core/email/package.json
CHANGED
package/core/enums/package.json
CHANGED
package/core/env/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.69",
|
|
5
5
|
"description": "The Stacks.js ESLint config preset, heavily inspired by Anthony's ESLint config.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
7
7
|
"license": "MIT",
|
package/core/events/package.json
CHANGED
package/core/faker/package.json
CHANGED
package/core/git/package.json
CHANGED
package/core/health/package.json
CHANGED
package/core/http/package.json
CHANGED
package/core/lint/package.json
CHANGED