public function removeGitSubmodulesInVendor($base_path = null)
    {
        $base_path = isset($base_path) && file_exists($base_path)
            ? $base_path
            : ProjectX::projectRoot();

        $composer = $this->getComposer();
        $composer_config = $composer->getConfig();

        $vendor_dir = isset($composer_config['vendor-dir'])
            ? $composer_config['vendor-dir']
            : 'vendor';

        $this->removeGitSubmodules(
            [$base_path . "/{$vendor_dir}"],
            2
        );

        return $this;
    }