#10903·tldraw

Clean up tech debt left from the pnpm migration

Author: frolicCreated Sep 24, 2026Updated Sep 26, 2026
Labelsimprovement

The Yarn-to-pnpm migration (#10841) and the switch to pnpm's isolated linker (#10901) were kept to the changes each switch strictly required. This issue collects the follow-up cleanup those PRs deliberately left out: tech debt, workarounds and version consolidation. Each item should be a small, separate PR.

  • Port mcp-app's editor API extraction to TypeScript 7 and drop the typescript5 alias (#10902). The generated editor-api.json changes only in quote style and union order.

  • Replace the deprecated Node10 module resolution in extract-editor-api.ts with Bundler. This one is moot once #10902 lands.

  • Export a named throttled-function type from @tldraw/utils. It would replace the ReturnType<typeof throttle<() => void>> annotations the isolated linker required in sync-core and bemo-worker. Done in #10927; throttle is now typed to return it.

  • Remove the -pnpm-isolated- marker from the node_modules cache key. Obsolete: #10901 caches the pnpm store (setup-node cache: pnpm) instead of node_modules.

  • Skip pnpm store cache saves on merge_group runs. Not needed (#10951 closed): the repo is slightly over its 75 GB cache limit, but GitHub removes the least recently used caches first, so main's caches stay warm. Revisit if main starts to miss caches.

  • Revisit autoInstallPeers: false in pnpm-workspace.yaml. Decided: keep it off. Turning it on mostly installs peers nothing runs, and a peer that is genuinely needed should be declared instead.

  • Consolidate the TypeScript versions across the repo: the root is on 7, templates on 5.8, and mcp-app's extraction is on 5.9. Done: mcp-app moved to 7 in #10902. Templates stay on 5 on purpose (#9752), because they are independently published starters.

  • Clean up importHelpers and tslib. #10901 removed importHelpers: true from the base tsconfig: tsc only emits declarations and esbuild never imports tslib, so the flag only required a tslib that no package declares. The vscode tsconfigs still set it to false (the default) and templates/agent sets it to true; remove those overrides, and drop tslib wherever it's declared but nothing needs it. (#10926)

  • Stop setup-playwright from depending on apps/examples. Read the version workspace-wide with pnpm ls -r --depth 0 --json @playwright/test, and fail if more than one version comes back. Install browsers with pnpm dlx playwright@$PLAYWRIGHT_VERSION install --with-deps. (#10925)

  • Clear the remaining Vercel dashboard overrides so every app's build config lives in its vercel.json:

    • examples: clear Install, Build and Output now, since vercel.json sets them on every branch. Clear the Ignored build step once the next release puts #10911 on docs-production.
    • tldraw-docs: clear Install, Build, Output and the Ignored build step once the next release puts #10906 on docs-production, which is still Yarn-era and has no apps/docs/vercel.json.
    • tldraw-new: move the Output Directory override (.) into apps/tldraw-new/vercel.json, then clear it.
    • workflow-template and tldraw-shader: they stay on Vercel (#10862 closed). Their vercel.json already sets Install, Build and the Ignored build step, so clear any matching dashboard overrides.
    • chat-template: move from Node 22.x to 24.x, the same as the other projects.