Skip to content
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

Merged
merged 3 commits into from
Oct 17, 2019
Merged

Conversation

markuskobler
Copy link
Contributor

@markuskobler markuskobler commented May 28, 2019

Fix's #78

@asakusuma
Copy link
Contributor

@krisselden can you review this?

Copy link
Collaborator

@krisselden krisselden left a 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.

src/compiler/create-parse-config-host.ts Outdated Show resolved Hide resolved
src/compiler/create-parse-config-host.ts Outdated Show resolved Hide resolved
@wycats
Copy link
Contributor

wycats commented Jul 9, 2019

Can we merge this so we can get up to date?

@wycats
Copy link
Contributor

wycats commented Jul 29, 2019

It seems like TS thinks we're using private APIs?

microsoft/TypeScript#32564

@krisselden
Copy link
Collaborator

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.

@krisselden
Copy link
Collaborator

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.

@krisselden
Copy link
Collaborator

linking some related issues

microsoft/TypeScript#13793
microsoft/TypeScript#20878
microsoft/TypeScript#21021

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.
@tomdale tomdale changed the title Upgrade typescript@3.4.x Upgrade typescript@3.5.3 Oct 17, 2019
@tomdale tomdale dismissed krisselden’s stale review October 17, 2019 21:47

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

@tomdale tomdale merged commit 6942e74 into tildeio:master Oct 17, 2019
@markuskobler markuskobler deleted the upgrade-typescript branch October 20, 2019 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants