refactor(anchor): consume extracted evidence-anchor package (EANCH-WP-0001-T05)
Replace the in-repo src/anchor/ slice with a dependency on the extracted
@citation-evidence/evidence-anchor package (link:../evidence-anchor).
- package.json: add the link dependency
- repoint all @anchor/{index,selectors,types} imports and vi.mock targets to
the package barrel; the node-env anchor-source-roundtrip test uses the pure
./selectors and ./types subpaths (no pdfjs pulled into a node environment)
- drop the @anchor alias from tsconfig paths and vite resolve
- delete src/anchor/ (behavior now owned by evidence-anchor)
Verified green: pnpm typecheck, pnpm test (26 files / 95 tests), pnpm build.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
cf57a9bb50
commit
d14514891e
34 changed files with 39 additions and 1708 deletions
|
|
@ -21,6 +21,7 @@
|
|||
"dependencies": {
|
||||
"@citation-evidence/engine": "link:../citation-engine",
|
||||
"@citation-evidence/evidence-source": "link:../evidence-source",
|
||||
"@citation-evidence/evidence-anchor": "link:../evidence-anchor",
|
||||
"jszip": "^3.10.1",
|
||||
"pdfjs-dist": "^4.4.168",
|
||||
"react": "^18.3.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue