Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Programmatic API

I exposed the internals. On purpose. You can import from depfresh and do whatever you want with your dependency graph. ESM-only, obviously. It's not 2019.

Pages

  • Overview -- Quick start, defaults, workflow examples. The "just show me some code" page.

  • Functions -- Every exported function: check, resolveConfig, loadPackages, resolvePackage, writePackage, and the rest. Includes lifecycle callbacks, addon plugin hooks, and built-in addons.

  • Types -- The full type catalogue. depfreshOptions, depfreshAddon, PackageMeta, ResolvedDepChange, and everything your editor wants to autocomplete.

  • Errors -- Structured error classes: RegistryError, CacheError, ConfigError, WriteError, ResolveError, AddonError. All extend depfreshError, all have stable codes.