sst 2.0.33 → 2.0.35

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.
@@ -173,7 +173,6 @@ export declare class App extends cdk.App {
173
173
  */
174
174
  addDefaultFunctionLayers(layers: lambda.ILayerVersion[]): void;
175
175
  synth(options?: cdk.StageSynthesisOptions): cxapi.CloudAssembly;
176
- /** @internal */
177
176
  finish(): Promise<void>;
178
177
  isRunningSSTTest(): boolean;
179
178
  getInputFilesFromEsbuildMetafile(file: string): Array<string>;
package/constructs/App.js CHANGED
@@ -227,7 +227,6 @@ export class App extends cdk.App {
227
227
  const cloudAssembly = super.synth(options);
228
228
  return cloudAssembly;
229
229
  }
230
- /** @internal */
231
230
  async finish() {
232
231
  await useDeferredTasks().run();
233
232
  this.buildConstructsMetadata();
package/constructs/RDS.js CHANGED
@@ -263,7 +263,7 @@ export class RDS extends Construct {
263
263
  // - when running resources tests, __dirname is `resources/src`
264
264
  // For now we will do `__dirname/../dist` to make both cases work.
265
265
  const fn = new Fn(this, "MigrationFunction", {
266
- handler: path.resolve(path.join(__dirname, "../../support/rds-migrator/index.handler")),
266
+ handler: path.resolve(path.join(__dirname, "../support/rds-migrator/index.handler")),
267
267
  runtime: "nodejs16.x",
268
268
  timeout: 900,
269
269
  memorySize: 1024,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },
@@ -80,7 +80,7 @@ export const useNodeHandler = Context.memo(async () => {
80
80
  const isESM = (nodejs.format || "esm") === "esm";
81
81
  const relative = path.relative(project.paths.root, path.resolve(parsed.dir));
82
82
  const extension = isESM ? ".mjs" : ".cjs";
83
- const target = path.join(input.out, !relative.startsWith("..") && !path.isAbsolute(relative)
83
+ const target = path.join(input.out, !relative.startsWith("..") && !path.isAbsolute(input.props.handler)
84
84
  ? relative
85
85
  : "", parsed.name + extension);
86
86
  const handler = path
package/sst.mjs CHANGED
@@ -4835,7 +4835,7 @@ var init_node = __esm({
4835
4835
  const extension = isESM ? ".mjs" : ".cjs";
4836
4836
  const target = path10.join(
4837
4837
  input.out,
4838
- !relative.startsWith("..") && !path10.isAbsolute(relative) ? relative : "",
4838
+ !relative.startsWith("..") && !path10.isAbsolute(input.props.handler) ? relative : "",
4839
4839
  parsed.name + extension
4840
4840
  );
4841
4841
  const handler = path10.relative(input.out, target.replace(extension, parsed.ext)).split(path10.sep).join(path10.posix.sep);