Local Dependencies

Via npm install ../other-repo.

When you have local dependencies (installed via npm install ../other-repo), nudeps automatically handles propagation between them, but there are a few things you need to know about it.

Registration

Each time nudeps runs, it registers itself as a dependent of each of its local dependencies by writing its relative path to the dep’s .nudeps/local-dependents.json. If a local dependency doesn’t have nudeps installed, a warning is printed suggesting you run npx nudeps install there.

Propagation

When nudeps detects that the generated import map has actually changed (content differs from the file on disk), it reads .nudeps/local-dependents.json and runs npx nudeps in each listed dependent. This ensures that when package B’s dependencies change, any repo A that depends on B locally gets its import map updated automatically.

Circular local dependencies (A depends on B and B depends on A) are handled naturally: propagation only triggers when the map content changes, so cycles terminate once the maps converge.