Skip to content

Commit da85804

Browse files
authored
fix: pass functions src directory to build.run (#38)
1 parent beca8fd commit da85804

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = {
9797
try {
9898
if (isActions) {
9999
// Here we're passing the build directory instead of source because source is extracted from inputs.functions.
100-
const stats = await build.run(functionsBuildDir);
100+
const stats = await build.run(functionsBuildDir, inputs.functions);
101101
console.log(stats.toString(stats.compilation.options.stats));
102102
// Copy any files that do not end with .js. T
103103
cpx.copy(inputs.functions + '/**/*.!(js)', functionsBuildDir);
@@ -117,6 +117,7 @@ module.exports = {
117117
}
118118

119119
if (isActions) {
120+
console.log('\n------------------Functions------------------\n');
120121
await deployActions({
121122
run: utils.run,
122123
functionsDir: functionsBuildDir,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"@iarna/toml": "^2.2.5",
3030
"cpx": "^1.5.0",
31-
"netlify-lambda": "satyarohith/netlify-lambda#master",
31+
"netlify-lambda": "satyarohith/netlify-lambda#88eac6a37bfb0920897c86ecda8682944a2bf5be",
3232
"netlify-redirect-parser": "^2.5.0",
3333
"nimbella-cli": "https://apigcp.nimbella.io/downloads/nim/nim-v1.8.0/nim-v1.8.0.tar.gz"
3434
},

0 commit comments

Comments
 (0)