private function updateAutomatically()
    {
        $source = $this->event->getComposer()->getConfig()->getConfigSource();
        $file = new JsonFile($source->getName(), null, $this->io);
        $contents = $file->read();

        $this->scripts = $contents['scripts'] = $this->modifyScripts($contents['scripts']);

        $file->write($contents);

        $this->io->writeError([
            '<info>',
            'Bolt has a new separate composer script handler to help with updates!',
            "We've automatically added this to your composer.json!",
            '</info>',
        ]);
    }