File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ module.exports = function(grunt) {
6060 tasksDefault . push ( 'scaffold' ) ;
6161
6262 if ( grunt . file . exists ( './composer.lock' ) && grunt . config . get ( [ 'composer' , 'install' ] ) ) {
63- if ( grunt . task . exists ( 'composer: drupal-scaffold' ) ) {
63+ if ( grunt . config . get ( [ 'composer' , ' drupal-scaffold'] ) ) {
6464 // Manually run `composer drupal-scaffold` since this is only automatically run on update.
6565 tasksDefault . unshift ( 'composer:drupal-scaffold' ) ;
6666 }
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module.exports = function(grunt) {
2929 } ) ;
3030
3131 // Add the drupal-scaffold task if it is defined in the `composer.json`.
32- var composer = require ( 'fs' ) . readFileSync ( './composer.json' , 'utf8' ) ;
32+ var composer = JSON . parse ( require ( 'fs' ) . readFileSync ( './composer.json' , 'utf8' ) ) ;
3333 if ( typeof composer . scripts !== 'undefined' && 'drupal-scaffold' in composer . scripts ) {
3434 grunt . config ( [ 'composer' , 'drupal-scaffold' ] , { } ) ;
3535 }
You can’t perform that action at this time.
0 commit comments