Skip to content

TypeScript "paths" in monorepo #620

Closed Answered by anthonyshew
steveruizok asked this question in Help
Discussion options

You must be logged in to vote

Hey, folks! We've officially documented our recommendation on this: Use Node.js subpath imports.

If you're not able to upgrade to TypeScript 5.4, there are many other options here in this thread that you can choose from that come with their own tradeoffs.

I appreciate everyone in this thread who talked through various ways of handling absolute imports in TypeScript monorepos, whether that was asking questions or providing answers. From talking to the Node.js and TypeScript teams, Node.js subpath imports is your best bet going forward!

Replies: 20 comments 39 replies

Comment options

You must be logged in to vote
9 replies
@maipato10
Comment options

@daabe3
Comment options

@bestickley
Comment options

@T04435
Comment options

@EfstathiadisD
Comment options

Comment options

You must be logged in to vote
5 replies
@lucaschultz
Comment options

@jwenger100
Comment options

@citypaul
Comment options

@mayvagio2016
Comment options

@juchanhwang
Comment options

Comment options

You must be logged in to vote
1 reply
@jmroon
Comment options

Comment options

You must be logged in to vote
1 reply
@jmroon
Comment options

Comment options

You must be logged in to vote
2 replies
@lveillard
Comment options

@acnicolasdc
Comment options

Comment options

You must be logged in to vote
2 replies
@jmroon
Comment options

@airtonix
Comment options

Comment options

You must be logged in to vote
2 replies
@un33k
Comment options

@jmroon
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@andresgutgon
Comment options

@Nikola-Milovic
Comment options

@andresgutgon
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@Thijmen
Comment options

@sokhengpory
Comment options

@AndreaPontrandolfo
Comment options

@oney
Comment options

@amosbastian
Comment options

Answer selected by anthonyshew
Comment options

You must be logged in to vote
1 reply
@tkodev
Comment options

Comment options

You must be logged in to vote
1 reply
@tkodev
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet