We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01112e9 commit 3fde646Copy full SHA for 3fde646
lib/cli.js
@@ -188,7 +188,7 @@ Cli.runr = function runr(processArgv) {
188
log.debug('\nNpm scripts:', npmScripts);
189
log.debug('Gulpfile found:', gulpLoaded, '\n');
190
191
- if (npmScripts.hasOwnProperty(taskName + ':before') || npmScripts.hasOwnProperty(taskName + ':after')) {
+ if (npmScripts && (npmScripts.hasOwnProperty(taskName + ':before') || npmScripts.hasOwnProperty(taskName + ':after'))) {
192
return Cli.runWithNpmScripts(argv, task, rawCliArguments);
193
} else if (gulpLoaded) {
194
return Cli.runWithGulp(argv, task, rawCliArguments);
0 commit comments