Expand description
Shared utilities for command implementations.
This module provides common functionality used across multiple commands:
- Path resolution and validation
- Configuration loading and merging
- Directory cleaning operations
- Entry point validation
- Package manager detection
Enums§
- Package
Manager - Detect which package manager is being used in a project.
Functions§
- clean_
output_ dir - Clean an output directory by removing all its contents.
- ensure_
output_ dir - Ensure an output directory exists, creating it if necessary.
- find_
package_ json - Walks up the directory tree to find the nearest package.json.
- get_cwd
- Get the current working directory.
- resolve_
path - Resolve a path relative to a working directory.
- resolve_
project_ root - Resolves the project root directory using smart auto-detection.
- validate_
entry - Validate that an entry point file exists.