Skip to content

Commit

Permalink
* composer.json generation: require-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jul 9, 2015
1 parent 40b52c1 commit 496217f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/goals/ComposerJsonGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ public function actionLoad()
'support' => $this->support,
'authors' => $this->authors,
'require' => $this->require,
'require-dev' => $this->get('require-dev'),
'autoload' => $this->autoload,
];
$this->smartSet($sets, 'first');
if (!$this->get('require')) {
$this->delete('require');
foreach (['require', 'require-dev'] as $k) {
if (!$this->get($k)) {
$this->delete($k);
}
}
}

Expand Down

0 comments on commit 496217f

Please sign in to comment.