11const fs = require ( 'fs' )
2- const { flags} = require ( '@oclif/command' )
2+ const { flags } = require ( '@oclif/command' )
33const Command = require ( '@netlify/cli-utils' )
4- const { zipFunctions} = require ( '@netlify/zip-it-and-ship-it' )
4+ const { zipFunctions } = require ( '@netlify/zip-it-and-ship-it' )
55
66class FunctionsBuildCommand extends Command {
77 async run ( ) {
8- const { flags, args} = this . parse ( FunctionsBuildCommand )
9- const { config} = this . netlify
8+ const { flags, args } = this . parse ( FunctionsBuildCommand )
9+ const { config } = this . netlify
1010
1111 const src = flags . src || config . build . functionsSource
1212 const dst = flags . functions || config . build . functions
@@ -26,10 +26,10 @@ class FunctionsBuildCommand extends Command {
2626 process . exit ( 1 )
2727 }
2828
29- fs . mkdirSync ( dst , { recursive : true } )
29+ fs . mkdirSync ( dst , { recursive : true } )
3030
3131 this . log ( 'Building functions' )
32- zipFunctions ( src , dst , { skipGo : true } )
32+ zipFunctions ( src , dst , { skipGo : true } )
3333 this . log ( 'Functions buildt to ' , dst )
3434 }
3535}
@@ -40,12 +40,12 @@ FunctionsBuildCommand.description = `build functions locally
4040FunctionsBuildCommand . flags = {
4141 functions : flags . string ( {
4242 char : 'f' ,
43- description : 'Specify a functions folder to build to' ,
43+ description : 'Specify a functions folder to build to'
4444 } ) ,
4545 src : flags . string ( {
4646 char : 's' ,
47- description : 'Specify the source folder for the functions' ,
48- } ) ,
47+ description : 'Specify the source folder for the functions'
48+ } )
4949}
5050
5151module . exports = FunctionsBuildCommand
0 commit comments