Skip to content

Commit

Permalink
Merge pull request #34 from koala-framework/composer-v2
Browse files Browse the repository at this point in the history
feat: add also support for composer v2
  • Loading branch information
kaufmo committed Jun 11, 2024
2 parents 8421543 + ab5906c commit 0c61eb0
Show file tree
Hide file tree
Showing 3 changed files with 2,658 additions and 471 deletions.
8 changes: 8 additions & 0 deletions Kwf/ComposerExtraAssets/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,4 +401,12 @@ private function _createNpmBinaries() {
$linkWriter->writeLink($binary);
}
}

public function deactivate(Composer $composer, IOInterface $io)
{
}

public function uninstall(Composer $composer, IOInterface $io)
{
}
}
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"license": "BSD-2-Clause",
"type": "composer-plugin",
"require": {
"composer-plugin-api": "^1.0",
"composer-plugin-api": "^1.0 || ^2.0",
"mouf/nodejs-installer": ">=1.0.2 <2.0"
},
"require-dev": {
"composer/composer": "^2.0",
"phpunit/phpunit": "4.5.*"
},
"extra": {
Expand All @@ -33,5 +34,10 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"config": {
"allow-plugins": {
"mouf/nodejs-installer": true
}
}
}
Loading

0 comments on commit 0c61eb0

Please sign in to comment.