private function writeYamlConfig()
    {
        $customized = [];

        foreach ($this->resolver->names() as $name) {
            $raw = $this->resolver->raw($name);

            if ($raw !== $this->defaults->raw($name)) {
                $customized[$name] = $raw;
            }
        }

        if (!$customized) {
            return;
        }

        $this->io->writeln('Writing customized paths to <comment>.bolt.yml</comment>');

        $config = [
            'paths' => $customized,
        ];
        $this->filesystem->dumpFile('.bolt.yml', Yaml::dump($config));
    }