Skip to content

Commit b5a9bdb

Browse files
authored
Merge pull request #122 from aheissenberger/fix/invoke-local-servicedirpath
fix(pack): servicePath not set for invoke local
2 parents 8674a62 + 648f223 commit b5a9bdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pre-local.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { EsbuildPlugin } from '.';
22
export function preLocal(this: EsbuildPlugin) {
33
this.serviceDirPath = this.buildDirPath;
4+
this.serverless.config.servicePath = this.buildDirPath;
45
// Set service path as CWD to allow accessing bundled files correctly
56
process.chdir(this.serviceDirPath);
67
}

0 commit comments

Comments
 (0)