packages/vue-styleguidist/scripts/config.js
function findConfigFile() {
	let configDir
	try {
		configDir = findup.sync(process.cwd(), CONFIG_FILENAME)
	} catch (exception) {
		return false
	}

	return path.join(configDir, CONFIG_FILENAME)
}
function findConfigFile() {
	let configDir
	try {
		configDir = findup.sync(process.cwd(), CONFIG_FILENAME)
	} catch (exception) {
		return false
	}

	return path.join(configDir, CONFIG_FILENAME)
}
function findConfigFile ( ) { let configDir try { configDir = findup . sync ( process . cwd ( ) , CONFIG_FILENAME ) } catch ( exception ) { return false } return path . join ( configDir , CONFIG_FILENAME ) }
Try to find config file up the file tree.

@return {string|boolean} Config absolute file path.
Try to find config file up the file tree .