Skip to content

Commit 183dd3a

Browse files
authored
fix(sam): normalize typescript "code" invokes #3118
Fix TS run/debug path bug on Windows
1 parent a6a4ed4 commit 183dd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/sam/debugger/typescriptSamDebug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async function compileTypeScript(config: SamLaunchRequestArgs): Promise<void> {
201201

202202
// resolve ts lambda handler to point into build directory relative to codeRoot
203203
const tsLambdaHandler = path.relative(config.codeRoot, path.join(tsBuildDir, config.invokeTarget.lambdaHandler))
204-
config.invokeTarget.lambdaHandler = tsLambdaHandler
204+
config.invokeTarget.lambdaHandler = pathutil.normalizeSeparator(tsLambdaHandler)
205205
getLogger('channel').info(`Resolved compiled lambda handler to ${tsLambdaHandler}`)
206206

207207
const tsc = await systemutil.SystemUtilities.findTypescriptCompiler()

0 commit comments

Comments
 (0)