sst 2.0.0-rc.42 → 2.0.0-rc.44
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/cli/commands/dev.js +1 -0
- package/cli/sst.js +5 -1
- package/cli/ui/deploy.js +1 -2
- package/cli/ui/header.js +6 -3
- package/package.json +1 -1
- package/project.js +1 -0
- package/sst.mjs +16 -6
package/cli/commands/dev.js
CHANGED
|
@@ -114,6 +114,7 @@ export const dev = (program) => program.command(["dev", "start"], "Work on your
|
|
|
114
114
|
project.metafile = metafile;
|
|
115
115
|
project.stacks = sstConfig.stacks;
|
|
116
116
|
const assembly = await Stacks.synth({
|
|
117
|
+
increaseTimeout: args["increase-timeout"],
|
|
117
118
|
fn: project.stacks,
|
|
118
119
|
outDir: `.sst/cdk.out`,
|
|
119
120
|
mode: "dev",
|
package/cli/sst.js
CHANGED
|
@@ -5,7 +5,9 @@ import { VisibleError } from "../error.js";
|
|
|
5
5
|
import { useSpinners } from "./spinner.js";
|
|
6
6
|
import { Logger } from "../logger.js";
|
|
7
7
|
import dotenv from "dotenv";
|
|
8
|
-
dotenv.config(
|
|
8
|
+
dotenv.config({
|
|
9
|
+
override: true,
|
|
10
|
+
});
|
|
9
11
|
import { env } from "./commands/env.js";
|
|
10
12
|
import { dev } from "./commands/dev.js";
|
|
11
13
|
import { bind } from "./commands/bind.js";
|
|
@@ -28,6 +30,8 @@ update(program);
|
|
|
28
30
|
updateMod(program);
|
|
29
31
|
consoleCommand(program);
|
|
30
32
|
diff(program);
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
process.setSourceMapsEnabled(true);
|
|
31
35
|
process.removeAllListeners("uncaughtException");
|
|
32
36
|
process.on("uncaughtException", (err) => {
|
|
33
37
|
Logger.debug(err);
|
package/cli/ui/deploy.js
CHANGED
|
@@ -59,8 +59,7 @@ export const DeploymentUI = (props) => {
|
|
|
59
59
|
Object.entries(resources).length === 0 && (React.createElement(Box, null,
|
|
60
60
|
React.createElement(Text, null,
|
|
61
61
|
React.createElement(Spinner, null),
|
|
62
|
-
" "
|
|
63
|
-
React.createElement(Text, { dimColor: true }, "Waiting for changes"))))));
|
|
62
|
+
" ")))));
|
|
64
63
|
};
|
|
65
64
|
export function printDeploymentResults(assembly, results) {
|
|
66
65
|
Colors.gap();
|
package/cli/ui/header.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { useProject } from "../../project.js";
|
|
1
2
|
import { Colors } from "../colors.js";
|
|
2
3
|
import { useLocalServerConfig } from "../local/server.js";
|
|
3
4
|
export async function printHeader(input) {
|
|
4
|
-
const
|
|
5
|
+
const project = useProject();
|
|
5
6
|
Colors.line(`${Colors.primary.bold("SST v2.0.4")} ${Colors.dim(`ready!`)}`);
|
|
6
7
|
Colors.gap();
|
|
7
|
-
Colors.line(`${Colors.primary(`➜`)} ${Colors.bold("Stage:")}
|
|
8
|
-
if (input.console)
|
|
8
|
+
Colors.line(`${Colors.primary(`➜`)} ${Colors.bold("Stage:")} ${project.config.stage}`);
|
|
9
|
+
if (input.console) {
|
|
10
|
+
const local = await useLocalServerConfig();
|
|
9
11
|
Colors.line(`${Colors.primary(`➜`)} ${Colors.bold("Console:")} ${Colors.link(local.url)}`);
|
|
12
|
+
}
|
|
10
13
|
Colors.gap();
|
|
11
14
|
}
|
|
12
15
|
export function printConsole() { }
|
package/package.json
CHANGED
package/project.js
CHANGED
package/sst.mjs
CHANGED
|
@@ -4338,7 +4338,8 @@ async function initProject(globals) {
|
|
|
4338
4338
|
const { initBootstrap: initBootstrap2 } = await Promise.resolve().then(() => (init_bootstrap(), bootstrap_exports));
|
|
4339
4339
|
await initBootstrap2();
|
|
4340
4340
|
dotenv.config({
|
|
4341
|
-
path: path13.join(project.paths.root, `.env.${project.config.stage}`)
|
|
4341
|
+
path: path13.join(project.paths.root, `.env.${project.config.stage}`),
|
|
4342
|
+
override: true
|
|
4342
4343
|
});
|
|
4343
4344
|
Logger.debug("Config loaded", project);
|
|
4344
4345
|
}
|
|
@@ -5214,7 +5215,7 @@ var init_deploy2 = __esm({
|
|
|
5214
5215
|
}
|
|
5215
5216
|
return /* @__PURE__ */ React.createElement(Box, { flexDirection: "column" }, Object.entries(resources).map(([_, evt]) => {
|
|
5216
5217
|
return /* @__PURE__ */ React.createElement(Box, { key: evt.LogicalResourceId }, /* @__PURE__ */ React.createElement(Text, null, /* @__PURE__ */ React.createElement(Spinner, null), " ", evt.StackName, " ", evt.ResourceType, " ", evt.LogicalResourceId, " "), /* @__PURE__ */ React.createElement(Text, { color: color(evt.ResourceStatus || "") }, evt.ResourceStatus));
|
|
5217
|
-
}), Object.entries(resources).length === 0 && /* @__PURE__ */ React.createElement(Box, null, /* @__PURE__ */ React.createElement(Text, null, /* @__PURE__ */ React.createElement(Spinner, null), " "
|
|
5218
|
+
}), Object.entries(resources).length === 0 && /* @__PURE__ */ React.createElement(Box, null, /* @__PURE__ */ React.createElement(Text, null, /* @__PURE__ */ React.createElement(Spinner, null), " ")));
|
|
5218
5219
|
};
|
|
5219
5220
|
}
|
|
5220
5221
|
});
|
|
@@ -5904,19 +5905,24 @@ init_colors();
|
|
|
5904
5905
|
import chalk2 from "chalk";
|
|
5905
5906
|
|
|
5906
5907
|
// src/cli/ui/header.ts
|
|
5908
|
+
init_project();
|
|
5907
5909
|
init_colors();
|
|
5908
5910
|
init_server2();
|
|
5909
5911
|
async function printHeader(input) {
|
|
5910
|
-
const
|
|
5912
|
+
const project = useProject();
|
|
5911
5913
|
Colors.line(`${Colors.primary.bold("SST v2.0.4")} ${Colors.dim(`ready!`)}`);
|
|
5912
5914
|
Colors.gap();
|
|
5913
|
-
Colors.line(
|
|
5914
|
-
|
|
5915
|
+
Colors.line(
|
|
5916
|
+
`${Colors.primary(`\u279C`)} ${Colors.bold("Stage:")} ${project.config.stage}`
|
|
5917
|
+
);
|
|
5918
|
+
if (input.console) {
|
|
5919
|
+
const local = await useLocalServerConfig();
|
|
5915
5920
|
Colors.line(
|
|
5916
5921
|
`${Colors.primary(`\u279C`)} ${Colors.bold("Console:")} ${Colors.link(
|
|
5917
5922
|
local.url
|
|
5918
5923
|
)}`
|
|
5919
5924
|
);
|
|
5925
|
+
}
|
|
5920
5926
|
Colors.gap();
|
|
5921
5927
|
}
|
|
5922
5928
|
|
|
@@ -6068,6 +6074,7 @@ var dev = (program2) => program2.command(
|
|
|
6068
6074
|
project2.metafile = metafile;
|
|
6069
6075
|
project2.stacks = sstConfig.stacks;
|
|
6070
6076
|
const assembly = await Stacks.synth({
|
|
6077
|
+
increaseTimeout: args["increase-timeout"],
|
|
6071
6078
|
fn: project2.stacks,
|
|
6072
6079
|
outDir: `.sst/cdk.out`,
|
|
6073
6080
|
mode: "dev"
|
|
@@ -6758,7 +6765,9 @@ var diff2 = (program2) => program2.command(
|
|
|
6758
6765
|
);
|
|
6759
6766
|
|
|
6760
6767
|
// src/cli/sst.ts
|
|
6761
|
-
dotenv2.config(
|
|
6768
|
+
dotenv2.config({
|
|
6769
|
+
override: true
|
|
6770
|
+
});
|
|
6762
6771
|
dev(program);
|
|
6763
6772
|
deploy2(program);
|
|
6764
6773
|
build(program);
|
|
@@ -6770,6 +6779,7 @@ update(program);
|
|
|
6770
6779
|
updateMod(program);
|
|
6771
6780
|
consoleCommand(program);
|
|
6772
6781
|
diff2(program);
|
|
6782
|
+
process.setSourceMapsEnabled(true);
|
|
6773
6783
|
process.removeAllListeners("uncaughtException");
|
|
6774
6784
|
process.on("uncaughtException", (err) => {
|
|
6775
6785
|
Logger.debug(err);
|