-
Notifications
You must be signed in to change notification settings - Fork 24
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
Upgrade typescript@3.5.3 #79
Conversation
@krisselden can you review this? |
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.
Need more explanation to how this is fixes #78 where @asakusuma mentioned that matchFiles changed, I expected some change related to that.
Can we merge this so we can get up to date? |
It seems like TS thinks we're using private APIs? |
We need to, it is too cumbersome to match the globbing behavior in the host interfaces without using that API, so that is not going to change. |
I've asked them to make it public or easier. It should be as easy to make a virtual fs like they use in their test suite with public api. |
linking some related issues microsoft/TypeScript#13793 There is no reasonable way to deal with include/exclude globing in readDirectory in a host that is trying to gate all fs access without this API. Broccoli treats input as immutable and actually builds inside of tmp directories, the only way to get node resolution and types to work is to pretend in the host like these tmp dirs are "mounted" in the project path. In order to avoid using this API, I would have to parse the glob and match the under-specified glob behavior of matchFiles. |
Since the underlying realpath implementation performs an existence check, there's no need to guard for ENOENT errors, and we can let exceptions propagate as they will represent a more serious error.
Synced with Kris via chat, he is okay with merging given the passing test suite (and also tested against glimmer-vm) to unblock the upgrade
Fix's #78