jmove/tests/typescript/refs
loki5512344 1ddf79b508
feat: warn about non-import references to moved files
The import graph only rewrites import/export-from/require. Files are
also named from markdown links, package.json fields, jest.mock strings
and tsconfig file lists, and a move that dangles those must not pass
silently. mv now scans text formats plus source strings for the moved
paths, module names and old specifier forms (word-boundary matched,
lockfiles/hidden dirs skipped) and reports each occurrence once per
line on stderr and as non_import_refs[] in --json (dry-run included).
References are never edited; exit codes are unchanged.

Also moves normalize_scope into Index (its only consumer) and the
Change/ChangedFile JSON structs into output where they are built, to
stay inside the 250-line-per-file budget.
2026-09-15 19:48:18 +02:00
..
.notes feat: warn about non-import references to moved files 2026-09-15 19:48:18 +02:00
__tests__ feat: warn about non-import references to moved files 2026-09-15 19:48:18 +02:00
lib feat: warn about non-import references to moved files 2026-09-15 19:48:18 +02:00
app.ts feat: warn about non-import references to moved files 2026-09-15 19:48:18 +02:00
package-lock.json feat: warn about non-import references to moved files 2026-09-15 19:48:18 +02:00
package.json feat: warn about non-import references to moved files 2026-09-15 19:48:18 +02:00
README.md feat: warn about non-import references to moved files 2026-09-15 19:48:18 +02:00

Use sum via lib/sum. See also lib/summary for text. Layout note: lib/ holds helpers.