sst 2.0.34 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.0.34",
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);