This repository was archived by the owner on Sep 12, 2019. It is now read-only.
File tree 2 files changed +11
-0
lines changed
function-builder-detectors
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,16 @@ class DevCommand extends Command {
232
232
if ( functionsDir ) {
233
233
const functionBuilder = await detectFunctionsBuilder ( settings ) ;
234
234
if ( functionBuilder ) {
235
+ this . log (
236
+ `${ NETLIFYDEVLOG } Function builder ${ chalk . yellow (
237
+ functionBuilder . builderName
238
+ ) } detected: Running npm script ${ chalk . yellow (
239
+ functionBuilder . npmScript
240
+ ) } `
241
+ ) ;
242
+ this . warn (
243
+ `${ NETLIFYDEVWARN } This is a beta feature, please give us feedback on how to improve at https://github.com/netlify/netlify-dev-plugin/`
244
+ ) ;
235
245
await functionBuilder . build ( ) ;
236
246
const functionWatcher = chokidar . watch ( functionBuilder . src ) ;
237
247
functionWatcher . on ( "add" , functionBuilder . build ) ;
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ module.exports = function() {
35
35
if ( settings . npmScript ) {
36
36
settings . build = ( ) =>
37
37
execa ( yarnExists ? "yarn" : "npm" , [ "run" , settings . npmScript ] ) ;
38
+ settings . builderName = "netlify-lambda" ;
38
39
return settings ;
39
40
}
40
41
} ;
You can’t perform that action at this time.
0 commit comments