log_helpers.ts

Declarations
#

8 declarations

view source

format_dev_cycles
#

log_helpers.ts view source

(analysis: { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }): string[]

Formats dev circular dependencies as styled strings. Returns array of lines for inclusion in output.

analysis

type { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }

returns

string[]

format_production_cycles
#

log_helpers.ts view source

(analysis: { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }): string[]

Formats production/peer circular dependencies as styled strings. Returns array of lines for inclusion in output.

analysis

type { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }

returns

string[]

format_wildcard_dependencies
#

log_helpers.ts view source

(analysis: { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }): string[]

Formats wildcard dependencies as styled strings. Returns array of lines for inclusion in output.

analysis

type { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }

returns

string[]

log_dependency_analysis
#

log_helpers.ts view source

(analysis: { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }, log: Logger, indent?: string): void

Logs all dependency analysis results (wildcards, production cycles, dev cycles). Convenience function that calls all three logging functions in order.

analysis

type { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }

log

type Logger

indent

type string
default ''

returns

void

log_dev_cycles
#

log_helpers.ts view source

(analysis: { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }, log: Logger, indent?: string): void

Logs dev circular dependencies as info. Dev cycles are normal and non-blocking, so they're informational, not warnings.

analysis

type { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }

log

type Logger

indent

type string
default ''

returns

void

log_list
#

log_helpers.ts view source

(items: string[], header: string, color: "cyan" | "yellow" | "red" | "dim", log: Logger, log_method?: "info" | "warn" | "error"): void

Logs a simple bulleted list with a header. Common pattern for warnings, info messages, and other lists.

items

type string[]

header

type string

color

type "cyan" | "yellow" | "red" | "dim"

log

type Logger

log_method

type "info" | "warn" | "error"
default 'info'

returns

void

log_production_cycles
#

log_helpers.ts view source

(analysis: { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }, log: Logger, indent?: string): void

Logs production/peer circular dependencies as errors. Production cycles block publishing and must be resolved.

analysis

type { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }

log

type Logger

indent

type string
default ''

returns

void

log_wildcard_dependencies
#

log_helpers.ts view source

(analysis: { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }, log: Logger, indent?: string): void

Logs wildcard dependencies as warnings. Wildcard dependencies require attention and should be reviewed.

analysis

type { production_cycles: string[][]; dev_cycles: string[][]; wildcard_deps: { pkg: string; dep: string; version: string; }[]; missing_peers: { pkg: string; dep: string; }[]; }

log

type Logger

indent

type string
default ''

returns

void

Imported by
#