public function update(Composer $composer)
    {
        $this->io->write(
            '<info>Updating NPM dependencies for root project</info>'
        );

        $package = $composer->getPackage();

        if ($this->isDependantPackage($package, true)) {
            $timeout = $this->packageTimeout($package->getExtra());

            $this->client->update(null, $timeout);
            $this->client->install(null, true, $timeout);
        } else {
            $this->io->write('Nothing to update');
        }

        $this->installForVendors($composer);
    }