sst 2.23.13 → 2.23.14
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/bind.js +1 -1
- package/cli/commands/deploy.js +4 -1
- package/cli/commands/dev.js +6 -4
- package/package.json +1 -1
- package/project.d.ts +1 -0
package/cli/commands/bind.js
CHANGED
|
@@ -326,7 +326,7 @@ export const bind = (program) => program
|
|
|
326
326
|
}));
|
|
327
327
|
return credentials;
|
|
328
328
|
};
|
|
329
|
-
//
|
|
329
|
+
// Assume role with max duration first. This can fail if chaining roles, or if
|
|
330
330
|
// the role has a max duration set. If it fails, assume role with 1 hour duration.
|
|
331
331
|
let err;
|
|
332
332
|
try {
|
package/cli/commands/deploy.js
CHANGED
|
@@ -41,7 +41,10 @@ export const deploy = (program) => program.command("deploy [filter]", "Deploy yo
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
// Check app mode changed
|
|
44
|
-
if (!
|
|
44
|
+
if (!project.config.advanced?.disableAppModeCheck &&
|
|
45
|
+
!getCiInfo().isCI &&
|
|
46
|
+
appMetadata &&
|
|
47
|
+
appMetadata.mode !== "deploy") {
|
|
45
48
|
if (!(await promptChangeMode())) {
|
|
46
49
|
process.exit(0);
|
|
47
50
|
}
|
package/cli/commands/dev.js
CHANGED
|
@@ -35,6 +35,7 @@ export const dev = (program) => program.command(["dev", "start"], "Work on your
|
|
|
35
35
|
if (args._[0] === "start") {
|
|
36
36
|
console.log(yellow(`Warning: ${bold(`sst start`)} has been renamed to ${bold(`sst dev`)}`));
|
|
37
37
|
}
|
|
38
|
+
const project = useProject();
|
|
38
39
|
const useFunctionLogger = Context.memo(async () => {
|
|
39
40
|
const bus = useBus();
|
|
40
41
|
const colors = ["#01cdfe", "#ff71ce", "#05ffa1", "#b967ff"];
|
|
@@ -137,7 +138,6 @@ export const dev = (program) => program.command(["dev", "start"], "Work on your
|
|
|
137
138
|
});
|
|
138
139
|
const useStackBuilder = Context.memo(async () => {
|
|
139
140
|
const watcher = useWatcher();
|
|
140
|
-
const project = useProject();
|
|
141
141
|
const scriptVersion = Date.now().toString();
|
|
142
142
|
let lastDeployed;
|
|
143
143
|
let isWorking = false;
|
|
@@ -266,7 +266,6 @@ export const dev = (program) => program.command(["dev", "start"], "Work on your
|
|
|
266
266
|
});
|
|
267
267
|
const useDisconnector = Context.memo(async () => {
|
|
268
268
|
const bus = useBus();
|
|
269
|
-
const project = useProject();
|
|
270
269
|
const iot = await useIOT();
|
|
271
270
|
bus.subscribe("cli.dev", async (evt) => {
|
|
272
271
|
const topic = `${iot.prefix}/events`;
|
|
@@ -302,14 +301,17 @@ export const dev = (program) => program.command(["dev", "start"], "Work on your
|
|
|
302
301
|
});
|
|
303
302
|
return new Promise((resolve) => {
|
|
304
303
|
console.log("");
|
|
305
|
-
rl.question(`You have previously deployed the stage "${
|
|
304
|
+
rl.question(`You have previously deployed the stage "${project.config.stage}" in production. It is recommended that you use a different stage for development. Read more here — https://docs.sst.dev/live-lambda-development\n\nAre you sure you want to run this stage in dev mode? [y/N] `, async (input) => {
|
|
306
305
|
rl.close();
|
|
307
306
|
resolve(input.trim() === "y");
|
|
308
307
|
});
|
|
309
308
|
});
|
|
310
309
|
}
|
|
311
310
|
// Check app mode changed
|
|
312
|
-
if (!
|
|
311
|
+
if (!project.config.advanced?.disableAppModeCheck &&
|
|
312
|
+
!getCiInfo().isCI &&
|
|
313
|
+
appMetadata &&
|
|
314
|
+
appMetadata.mode !== "dev") {
|
|
313
315
|
if (!(await promptChangeMode())) {
|
|
314
316
|
process.exit(0);
|
|
315
317
|
}
|
package/package.json
CHANGED