pub fn config_dir() -> Result<Option<AbsoluteSystemPathBuf>, PathError> {
    if let Ok(dir) = std::env::var("TURBO_CONFIG_DIR_PATH") {
        return AbsoluteSystemPathBuf::new(dir).map(Some);
    }

    dirs_config_dir()
        .map(AbsoluteSystemPathBuf::try_from)
        .transpose()
}
Returns the path to the user's configuration directory.

This is a wrapper around `dirs_next::config_dir` that also checks the
`TURBO_CONFIG_DIR_PATH` environment variable. If the environment variable
is set, it will return that path instead of `dirs_next::config_dir`.
crates/turborepo-dirs/src/lib.rs