Clean up tech debt left from the pnpm migration
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
typescript5alias (#10902). The generatededitor-api.jsonchanges only in quote style and union order.Replace the deprecated
Node10module resolution inextract-editor-api.tswithBundler. This one is moot once #10902 lands.Export a named throttled-function type from
@tldraw/utils. It would replace theReturnType<typeof throttle<() => void>>annotations the isolated linker required in sync-core and bemo-worker. Done in #10927;throttleis now typed to return it.Remove theObsolete: #10901 caches the pnpm store (setup-node-pnpm-isolated-marker from the node_modules cache key.cache: pnpm) instead of node_modules.Skip pnpm store cache saves onNot 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.merge_groupruns.Revisit
autoInstallPeers: falseinpnpm-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
importHelpersandtslib. #10901 removedimportHelpers: truefrom the base tsconfig: tsc only emits declarations and esbuild never importstslib, so the flag only required atslibthat no package declares. The vscode tsconfigs still set it tofalse(the default) andtemplates/agentsets it totrue; remove those overrides, and droptslibwherever it's declared but nothing needs it. (#10926)Stop
setup-playwrightfrom depending onapps/examples. Read the version workspace-wide withpnpm ls -r --depth 0 --json @playwright/test, and fail if more than one version comes back. Install browsers withpnpm 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, sincevercel.jsonsets them on every branch. Clear the Ignored build step once the next release puts #10911 ondocs-production.tldraw-docs: clear Install, Build, Output and the Ignored build step once the next release puts #10906 ondocs-production, which is still Yarn-era and has noapps/docs/vercel.json.tldraw-new: move the Output Directory override (.) intoapps/tldraw-new/vercel.json, then clear it.workflow-templateandtldraw-shader: they stay on Vercel (#10862 closed). Theirvercel.jsonalready 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.
Source: tldraw/tldraw