You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh repo clone https://github.com/colinhacks/live-typescript-monorepo
cd live-typescript-monorepo/custom-conditions
pnpm i
cd packages/pkg-b
tsx index.ts # module resolution error
tsx --conditions source index.ts # works!
I'm using custom export conditions in my TypeScript monorepo (described in more detail here). Since tsconfig.json already supports the customConditions compiler option for specifying custom export conditions, it would be cool if tsx could read that and incorporate it into module resolution automatically.
Bugs are expected to be fixed by those affected by it
I'm interested in working on this issue
Compensating engineering work financially will speed up resolution
I'm willing to offer financial support
The text was updated successfully, but these errors were encountered:
Acknowledgements
Minimal reproduction URL
This is actually a feature request sorry :(
It would be cool if
tsx
automatically readcustomConditions
fromtsconfig.json
and passed it tonode
using--conditions
.Problem & expected behavior (under 200 words)
"Repro" is https://github.com/colinhacks/live-typescript-monorepo
I'm using custom export conditions in my TypeScript monorepo (described in more detail here). Since
tsconfig.json
already supports thecustomConditions
compiler option for specifying custom export conditions, it would be cool iftsx
could read that and incorporate it into module resolution automatically.Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution
The text was updated successfully, but these errors were encountered: