stacks 0.58.68 → 0.58.70
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/cloud.ts +3 -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/package.json +1 -1
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/cloud/zip.ts +11 -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/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 +540 -2
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +9 -1
- 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/dist/index.js +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.70";
|
|
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
|
@@ -102,6 +102,7 @@ export function cloud(buddy: CLI) {
|
|
|
102
102
|
.alias('cloud:rm')
|
|
103
103
|
.alias('undeploy')
|
|
104
104
|
.option('--jump-box', 'Remove the jump-box', { default: false })
|
|
105
|
+
// .option('--realtime-cdn-logs', 'Remove the CDN Realtime Log Stream', { default: false }) // TODO: implement this
|
|
105
106
|
.option('-p, --project', descriptions.project, { default: false })
|
|
106
107
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
107
108
|
.action(async (options: CloudCliOptions) => {
|
|
@@ -185,7 +186,8 @@ export function cloud(buddy: CLI) {
|
|
|
185
186
|
|
|
186
187
|
buddy
|
|
187
188
|
.command('cloud:optimize-cost', descriptions.optimizeCost)
|
|
188
|
-
.option('--jump-box', 'Remove the jump-box', { default: true })
|
|
189
|
+
.option('--jump-box', 'Remove the jump-box', { default: true }) // removes the ec2 instance
|
|
190
|
+
// .option('--realtime-cdn-logs', 'Remove the CDN Realtime Log Stream', { default: true }) // TODO: implement this - removes the Kinesis Data Stream
|
|
189
191
|
.option('-p, --project', descriptions.project, { default: false })
|
|
190
192
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
191
193
|
.action(async (options: CloudCliOptions) => {
|
|
@@ -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.70";
|
|
506
506
|
|
|
507
507
|
// src/helpers.ts
|
|
508
508
|
async function intro(command2, options) {
|
package/core/cli/package.json
CHANGED
package/core/cloud/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks-router-layer",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.70",
|
|
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.69"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/core/cloud/zip.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { log, runCommand } from '@stacksjs/cli'
|
|
2
2
|
|
|
3
|
-
const result = await runCommand('zip -r
|
|
3
|
+
const result = await runCommand('zip -r ./dist.zip dist/origin-request.js package.json', {
|
|
4
4
|
cwd: import.meta.dir,
|
|
5
5
|
})
|
|
6
6
|
|
|
7
|
-
if (result.isErr())
|
|
7
|
+
if (result.isErr()) {
|
|
8
8
|
log.error(result.error)
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
// need to move the file to ../../cloud/dist.zip
|
|
12
|
+
await runCommand('mv -f dist.zip ../../cloud/dist.zip', {
|
|
13
|
+
cwd: import.meta.dir,
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
log.success('Created & moved dist.zip')
|
|
17
|
+
}
|
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.70",
|
|
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