Skip to content

Commit 70c77e9

Browse files
authored
Merge pull request #625 from FundySoftware/fix/pass-options-to-hooks-from-start-cmd
fix(start.js): pass build options to beforeBuild and afterBuild hooks
2 parents 51f7381 + f8ae235 commit 70c77e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/commands/start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,15 @@ module.exports = Command.extend({
225225
project
226226
});
227227

228-
return runHook('beforeBuild', {}, hookOptions);
228+
return runHook('beforeBuild', opts, hookOptions);
229229
})
230230
.then(() => editXml.addNavigation(project, reloadUrl))
231231
.then(() => cdvTarget.validateServe())
232232
.then(() => framework.validateServe(opts))
233233
.then(() => createLRShell.run(reloadUrl))
234234
.then(() => prepare.run({ platforms: [device.platform] }))
235235
.then(() => platformTarget.build())
236-
.then(() => runHook('afterBuild', {}, hookOptions))
236+
.then(() => runHook('afterBuild', opts, hookOptions))
237237
.then(() => platformTarget.run())
238238
.then(() => framework.serve(opts))
239239
.then(() => editXml.removeNavigation(project, reloadUrl))

0 commit comments

Comments
 (0)