sst 2.1.5 → 2.1.6

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.1.5",
3
+ "version": "2.1.6",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },
@@ -22,7 +22,10 @@ export const useNodeHandler = Context.memo(async () => {
22
22
  const result = cache[input.functionID];
23
23
  if (!result)
24
24
  return false;
25
- const relative = path.relative(project.paths.root, input.file.split(path.sep).join(path.posix.sep));
25
+ const relative = path
26
+ .relative(project.paths.root, input.file)
27
+ .split(path.sep)
28
+ .join(path.posix.sep);
26
29
  return Boolean(result.metafile?.inputs[relative]);
27
30
  },
28
31
  canHandle: (input) => input.startsWith("nodejs"),
package/sst.mjs CHANGED
@@ -4870,10 +4870,7 @@ var init_node = __esm({
4870
4870
  const result = cache[input.functionID];
4871
4871
  if (!result)
4872
4872
  return false;
4873
- const relative = path10.relative(
4874
- project.paths.root,
4875
- input.file.split(path10.sep).join(path10.posix.sep)
4876
- );
4873
+ const relative = path10.relative(project.paths.root, input.file).split(path10.sep).join(path10.posix.sep);
4877
4874
  return Boolean(result.metafile?.inputs[relative]);
4878
4875
  },
4879
4876
  canHandle: (input) => input.startsWith("nodejs"),