Repository navigation
build: TS project references + package resolution (nx stack 2/5) - #209
Merged
Merged
Conversation
…rage internals MoltNet-Diary: e6afedd9-9b04-46c7-9cae-dcaf191f1d51 Task-Group: ts-project-references Task-Family: refactor
…ubpath MoltNet-Diary: 39a3413b-3a95-4ee2-87e9-ae8eff3a5261 Task-Group: ts-project-references
MoltNet-Diary: c03d2e23-a7cc-422c-b209-cf57f76f0315 Task-Group: ts-project-references
MoltNet-Diary: 58f99f1e-adda-4d77-a3eb-ebddb631ec8e Task-Group: ts-project-references Task-Completes: true
# Conflicts: # packages/lock/tsconfig.spec.json
|
View your CI Pipeline Execution ↗ for commit 521c7f6
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
MoltNet-Diary: 6ac9aef8-6102-4376-b391-9da5f989ef71 Task-Group: tooling-deps
getlarge
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stack 2/5. Replaces tsconfig
pathswith TypeScript project references and package resolution (Nx's TS solution setup).This PR moved ahead of nx 22. nx 22 removes
external: "none"from@nx/js:tsc, whichclusterrelied on to bundletyped-event-emitterinto its build output, so nx 22 can't land without this.Layout
tsconfig.base.json: dropspaths/baseUrl; addscomposite,declarationMap,module/moduleResolution: nodenext,esModuleInteropandcustomConditions: ["@getlarge/source"].tsconfig.jsonis now a solution file. Per-packagereferencesare maintained bynx sync.buildis inferred by@nx/js/typescript(tsc --build tsconfig.lib.json) intopackages/*/dist.typecheckis a new inferred target and runs in CI.package.json: addsmain/types/exportsandfiles: [dist, CHANGELOG.md].nx-release-publishnow publishes from the project root.@getlarge/source, notdevelopment. Bundlers such as Vite enabledevelopmentfor consumers, which would resolve tosrc/, andsrc/isn't published.customExportConditions), andtestdepends on^build.Code fixes needed under
nodenext@google-cloud/storageinternals and mirrored three option types locally.@typescript-eslint/utils/ts-eslint(public) instead ofdist/ts-eslint.form-data.redlock@5.0.0-beta.2(unmaintained) has an exports map withouttypes, solock's tsconfig gets a types-onlypathsentry. It goes away when redlock is replaced (@sesamecare-oss/redlockis the candidate).Consumer-facing changes
dist/…instead ofsrc/…. Root imports (import … from '@getlarge/…') are unchanged.exportsmap. None are documented, so this only affects undocumented usage.clusterno longer inlinestyped-event-emitter; it resolves it as the regular dependency it already declared.Deferred
isolatedModulesstays off. Turning it on surfaces TS1272 errors and one real hazard:amqp-server.tsreadsRmqStatus, an ambient const enum from@nestjs/microservicesthat has no runtime value. It only works because fulltscinlines it. The Vitest PR, which compiles transpile-only, has to fix this.Verification
format:check,build,typecheckandlintpass for all projects.testpasses for typed-event-emitter, cluster, fastify-upload, async-local-storage and eslint-plugin. CI runs amqp/lock/file-storage, which need RabbitMQ, Redis and cloud credentials.npm pack --dry-runper package shows onlydist, README, CHANGELOG and package.json, with no specs or tsbuildinfo.nx release --dry-run --skip-publish, as the release workflow runs it, writes versions and changelogs topackages/*as before.