Module ito_dir

Module ito_dir 

Source
Expand description

Resolve the Ito working directory name and path. Ito working directory discovery.

This module answers: “where is the .ito/ directory for this project?”. It mirrors the precedence rules from the TypeScript implementation.

Functions§

absolutize_and_normalize
Resolves a possibly-relative path to an absolute, lexically normalized form.
get_ito_dir_name
Determine the configured Ito working directory name.
get_ito_dir_name_fs
Like get_ito_dir_name, but uses an injected file-system.
get_ito_path
Resolve the .ito/ path for project_root.
get_ito_path_fs
Resolve the Ito directory path for a project using an injected filesystem.
lexical_normalize
Lexically normalizes a path by resolving . and .. components without accessing the filesystem.