mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-22 09:36:53 +00:00
ui/src/main.ts imports `from 'ep_etherpad-lite/node/types/MapType.js'` for a single type-only reference. tsc resolves through the exports map, ends up at dist/node/types/MapType.mjs (no .d.ts sibling, since tsdown runs with dts:false), and gives up with TS7016 — "Could not find a declaration file for module". This crashed the Docker build step that the rate-limit job uses for its container image (see Dockerfile line 25: 'RUN pnpm run build:ui'). Add a `types` condition on every wildcard/exact exports entry, pointing to the source .ts file. tsc picks `types` before any other condition when looking for declarations, so type-only imports find the .ts and resolve cleanly without needing a generated .d.ts. Also fixes the ui/src/main.ts import that ended in '.ts' (incorrect per TS conventions; should be '.js' even when the source is .ts). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| consent.html | ||
| login.html | ||
| package.json | ||
| pad.html | ||
| tsconfig.json | ||
| vite.config.ts | ||