-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get entrypoint file #6200
base: main
Are you sure you want to change the base?
get entrypoint file #6200
Conversation
…verseEntrypointFile
All changed packages have been documented.
|
You can try these changes here
|
…verseEntrypointFile
134de2b
to
e0065d9
Compare
return entrypointTspFiles; | ||
} | ||
|
||
async function getEntrypointTspFileInFolder(folder: string): Promise<string | undefined> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you shouldn't rewrite that this is not the actual logic, you are missing exports
which are a very complex resolution
We should share this logic from the compiler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you document what gets resolved here?
Does it now only look for a pacakge.json first and then a main.tsp or it just look up for the first it finds
Get the entrypoint file from a tsp project step by step as following:
tspMain
defined inpackage.json
, return the value oftspMain
main.tsp
Apply above entrypoint strategy to traverse all entrypoint files in vscode worksapces.