EANCH-WP-0001 T02: bootstrap standalone TS package + test harness

Add package.json (name evidence-anchor, exports . and ./pdf, scripts
test/typecheck/lint), tsconfig.json (mirrors engine, DOM+jsx), vitest.config.ts
(happy-dom + react plugin), eslint.config.js (confines viewer libs to src/pdf/),
.nvmrc, and placeholder src entrypoints. Depends on @citation-evidence/engine
via sibling-checkout link only; no citation-evidence internals.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
tegwick 2026-07-08 20:37:59 +02:00
parent 08b3105454
commit 0e93b68982
9 changed files with 170 additions and 2 deletions

10
src/index.ts Normal file
View file

@ -0,0 +1,10 @@
// Public entrypoint for `evidence-anchor`.
//
// The stable surface consumers depend on is re-exported from here:
// - selector creation/resolution: ./selectors (T03)
// - adapter-side types + contract: ./types (T03)
// - the concrete PDF adapter: ./pdf (T04, also exposed at `evidence-anchor/pdf`)
//
// Populated during the extraction tasks; kept as an explicit placeholder so the
// package resolves and typechecks before the code lands.
export {};

6
src/pdf/index.ts Normal file
View file

@ -0,0 +1,6 @@
// Subpath entrypoint `evidence-anchor/pdf` — the concrete PDF viewer adapter and
// its helpers. Keeping the adapter behind a subpath lets pure consumers use the
// selector/resolution core without pulling PDF.js or React into their bundle.
//
// Populated in T04 (PDF adapter extraction); explicit placeholder for now.
export {};