Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit 0e4983b

Browse files
committed
Make sure repositories is written to composer.json
1 parent 1f55aae commit 0e4983b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DrupalInitCommand.php

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ private function getRepositories(InputInterface $input)
125125
'url' => 'https://packages.drupal.org/8',
126126
]);
127127

128+
// Add our Drupal packagist URL to the repositories so that it appears
129+
// in the composer.json file.
130+
$repositories[] = 'https://packages.drupal.org/8';
131+
$input->setOption('repository', $repositories);
132+
128133
$repos[] = RepositoryFactory::createRepo($io, $config, [
129134
'type' => 'composer',
130135
'url' => 'https://packagist.org',

0 commit comments

Comments
 (0)