@@ -71,7 +71,7 @@ module.exports = async function build(configPath, cliFlags, token) {
7171 // Map plugins methods in order for later execution
7272 Object . entries ( pluginSrc )
7373 . filter ( ( [ , value ] ) => typeof value === 'function' )
74- . map ( ( [ hook , method ] ) => ( { name, hook, config : pluginConfig , meta, method } ) )
74+ . map ( ( [ hook , method ] ) => ( { name, hook, pluginConfig, meta, method } ) )
7575 . forEach ( lifeCycleHook => {
7676 const { hook } = lifeCycleHook
7777 /* Override core functionality */
@@ -133,7 +133,7 @@ module.exports = async function build(configPath, cliFlags, token) {
133133 ? {
134134 name : `config.build.command` ,
135135 hook : 'build' ,
136- config : { } ,
136+ pluginConfig : { } ,
137137 async method ( ) {
138138 await execCommand ( configCommand , 'build.command' , redactedKeys )
139139 }
@@ -144,7 +144,7 @@ module.exports = async function build(configPath, cliFlags, token) {
144144 ? {
145145 name : `config.build.lifecycle.${ hook } ` ,
146146 hook,
147- config : { } ,
147+ pluginConfig : { } ,
148148 async method ( ) {
149149 const commands = Array . isArray ( configLifecycle [ hook ] )
150150 ? configLifecycle [ hook ]
@@ -310,7 +310,7 @@ async function engine({ instructions, netlifyConfig, netlifyConfigPath, netlifyT
310310
311311const runInstruction = async function ( {
312312 currentData,
313- instruction : { method, hook, config , name, override, meta : { scopes } = { } } ,
313+ instruction : { method, hook, pluginConfig , name, override, meta : { scopes } = { } } ,
314314 index,
315315 netlifyConfig,
316316 netlifyConfigPath,
@@ -346,7 +346,7 @@ const runInstruction = async function({
346346 /* Netlify configuration file netlify.[toml|yml|json] */
347347 netlifyConfig,
348348 /* Plugin configuration */
349- pluginConfig : config ,
349+ pluginConfig,
350350 /* Netlify API client */
351351 api : apiClient ,
352352 /* Values constants */
0 commit comments