etherpad-lite/ui
SamTV12345 4fe89abd74 fix(pkg): expose 'types' condition for ts-aware consumers
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>
2026-05-25 19:20:19 +02:00
..
src fix(pkg): expose 'types' condition for ts-aware consumers 2026-05-25 19:20:19 +02:00
.gitignore Feat/oauth2 (#6281): Added oauth to API paths 2024-03-26 17:11:24 +01:00
consent.html Feat/oauth2 (#6281): Added oauth to API paths 2024-03-26 17:11:24 +01:00
login.html Feat/oauth2 (#6281): Added oauth to API paths 2024-03-26 17:11:24 +01:00
package.json build(deps-dev): bump the dev-dependencies group across 1 directory with 2 updates (#7829) 2026-05-22 18:08:20 +02:00
pad.html feat!: replace Abiword with LibreOffice and add DOCX export (#7539) 2026-04-19 09:08:22 +01:00
tsconfig.json Feat/oauth2 (#6281): Added oauth to API paths 2024-03-26 17:11:24 +01:00
vite.config.ts chore(docker): clear most CVEs in published image (npm/pnpm/uuid + drop curl) (#7674) 2026-05-06 22:00:13 +02:00