Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Fix Windows deployment paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrandwijk committed Nov 9, 2017
1 parent dee6648 commit 14d5b25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class Bundler {
typeof fn.fn.handler.code === 'string'
? fn.fn.handler.code
: fn.fn.handler.code!.src
const buildFileName = path.join(this.buildDir, this.getBuildFileName(src))
const buildFileName = path.posix.join(this.buildDir, this.getBuildFileName(src))
const lambdaHandlerPath = this.getLambdaHandlerPath(buildFileName)
const devHandlerPath = this.getDevHandlerPath(buildFileName)
const bylinePath = this.getBylinePath(buildFileName)
Expand Down Expand Up @@ -220,7 +220,7 @@ export default class Bundler {
)
}

getBuildFileName = (src: string) => path.join(src.replace(/\.ts$/, '.js'))
getBuildFileName = (src: string) => path.posix.join(src.replace(/\.ts$/, '.js'))
getLambdaHandlerPath = (fileName: string) =>
fileName.slice(0, fileName.length - 3) + '-lambda.js'
getLambdaHandler = (fileName: string) =>
Expand Down

0 comments on commit 14d5b25

Please sign in to comment.