public function update(Composer $composer)
{
$this->io->write('<info>Updating NPM dependencies for root project</info>');
if ($this->isDependantPackage($composer->getPackage(), true)) {
$this->client->update();
$this->client->install(null, true);
$this->client->shrinkwrap();
} else {
$this->io->write('Nothing to update');
}
$this->installForVendors($composer);
}