function normalizeCwd(cwd) {
	if (cwd) {
		return cwd;
	}
	if (typeof process === "object") {
		return process.cwd();
	}

	// It's more explicit to assign the undefined
	// eslint-disable-next-line no-undefined -- Consistently returning a value
	return undefined;
}
Normalize the value of the cwd
@param {string | undefined} cwd raw value of the cwd, path to a directory that should be considered as the current working directory, can be undefined.
@returns {string | undefined} normalized cwd