(fs_paths: FsPaths, { dev, env_dir, env_files, ambient_env }: LoadEnvOptions): Promise<Record<string, string>> import {load_env} from '@fuzdev/gro/env_files.js'; Loads every env var from the env files plus the ambient env, later sources winning, so the ambient env overrides the files. A missing env file is skipped; one that can't be read throws.
fs_paths
reads the env files, a relative env_dir or file resolved against its project
__1
returns
Promise<Record<string, string>>
all loaded vars, unfiltered - resolve_env_vars picks out the declared ones
throws
FsError- when reading an env file fails other than by its absence