composer.json: add requirement for composer-plugin-api ^1.1
Bug: T266418 Change-Id: If77b1e0f9c3cef81850172551ac8e5c1417008e0
This commit is contained in:
parent
c2fec9c2a2
commit
dfeca6b641
2 changed files with 4 additions and 1 deletions
|
|
@ -18,6 +18,7 @@
|
|||
},
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"composer-plugin-api": "^1.1",
|
||||
"composer/semver": "1.5.1",
|
||||
"cssjanus/cssjanus": "1.3.0",
|
||||
"ext-ctype": "*",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ class ComposerJson {
|
|||
$deps = [];
|
||||
if ( isset( $this->contents['require'] ) ) {
|
||||
foreach ( $this->contents['require'] as $package => $version ) {
|
||||
if ( $package !== "php" && strpos( $package, 'ext-' ) !== 0 ) {
|
||||
// Examples of package dependancies that don't have a / in the name:
|
||||
// php, ext-xml, composer-plugin-api
|
||||
if ( strpos( $package, '/' ) !== false ) {
|
||||
$deps[$package] = self::normalizeVersion( $version );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue