这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

Hey, folks, just took a look a this as I ran into it myself and verified the behavior with create-turbo.

What I'm finding is that Just-in-Time Packages end up getting checked by their consumer. This makes sense, since the consumer is being fed raw TypeScript, so it's getting included in that program's files. Therefore, from TypeScript's perspective, those files need type checked.

create-turbo uses Just-in-Time Packages, so I switched it the @repo/ui package to be a Compiled Package to see if there would be a difference. It looks like it does! I purposefully added a type error into the @repo/ui package and it doesn't get reported when running a turbo run type-check --filter=web --only comm…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@davidgoli
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
1 reply
@jfraudeau
Comment options

Answer selected by anthonyshew
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
8 participants