sst 2.23.12 → 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.
@@ -326,7 +326,7 @@ export const bind = (program) => program
326
326
  }));
327
327
  return credentials;
328
328
  };
329
- // Assue role with max duration first. This can fail if chaining roles, or if
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 {
@@ -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 (!getCiInfo().isCI && appMetadata && appMetadata.mode !== "deploy") {
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
  }
@@ -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 "${useProject().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) => {
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 (!getCiInfo().isCI && appMetadata && appMetadata.mode !== "dev") {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.23.12",
4
+ "version": "2.23.14",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
package/project.d.ts CHANGED
@@ -14,6 +14,7 @@ export interface ConfigOptions {
14
14
  outputs?: string;
15
15
  advanced?: {
16
16
  disableParameterizedStackNameCheck?: boolean;
17
+ disableAppModeCheck?: boolean;
17
18
  };
18
19
  bootstrap?: {
19
20
  useCdkBucket?: boolean;