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 +1 -1
- package/runtime/handlers/node.js +4 -1
- package/sst.mjs +1 -4
package/package.json
CHANGED
package/runtime/handlers/node.js
CHANGED
|
@@ -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
|
|
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"),
|