Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 197b41d

Browse files
committed
Return a promise from netlify-lambda detector
This makes sure we wait for the initial build before starting function server, so the function folder gets created correctly first
1 parent 911e141 commit 197b41d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/function-builder-detectors/netlify-lambda.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ module.exports = function() {
3333
}
3434

3535
if (settings.npmScript) {
36-
settings.build = () => {
36+
settings.build = () =>
3737
execa(yarnExists ? "yarn" : "npm", ["run", settings.npmScript]);
38-
};
3938
return settings;
4039
}
4140
};

0 commit comments

Comments
 (0)