Skip to content

Commit

Permalink
fix for nested function constructs
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Jul 22, 2023
1 parent d97c3ac commit 7ea9959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "samp-cli",
"version": "1.0.16",
"version": "1.0.17",
"description": "CLI tool for extended productivity with AWS Serverless Application Model (SAM)",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/local/lib/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const functionSources = functions.map(key => { return { uri: template.Resources[
break;
}
}
const module = `file://${`${process.cwd()}/${baseDir}${handler}${jsExt}`.replace(/\/\//g, '/')}`;
const module = `file://${`${process.cwd()}/${baseDir}${handler}${jsExt}`.replace(/\/\//g, '/')}`.replace('.samp-out/./', '.samp-out/');
map[obj.name] = {
module,
handler: handlerMethod
Expand Down

0 comments on commit 7ea9959

Please sign in to comment.