Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions drupal-contrib/template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,10 @@ COMPOSE_EOF
fi

if [ "$DRUPAL_INSTALLED" = "false" ]; then
if [ ! -f composer.json ]; then
log_setup "Creating empty composer.json..."
echo '{}' > composer.json
fi
# Add drush as require-dev so expand-composer-json includes it in composer.contrib.json.
# Direct JSON edit (not `composer require`) per ddev-drupal-contrib README.
log_setup "Adding drush to require-dev..."
Expand Down
Loading