Skip to content

Use temp dir in project for precompile #1153

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

Merged
merged 3 commits into from
May 29, 2020

Conversation

jamescdavis
Copy link
Member

This changes ts:precompile to use a temp dir within the project (under cwd) instead of a system temp file. This is to work around microsoft/TypeScript#34749 (comment)

It also makes sure the temp dir is removed after the command is run, even if an error is encountered.

@jamescdavis jamescdavis requested a review from dfreeman May 28, 2020 16:06
@jamescdavis
Copy link
Member Author

I have not been able to repro either of those test failures locally ¯\_(ツ)_/¯.

@dfreeman
Copy link
Member

Hmmm... maybe related to emberjs/ember.js#18831? I haven't totally digested the solution (or even the problem) there yet, so I'm not sure if it makes sense that we'd be running into that or not.

Copy link
Member

@dfreeman dfreeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this fixed! Looks great to me modulo our CI issues, which we've determined are unrelated

@jamescdavis jamescdavis merged commit 108ea98 into master May 29, 2020
@delete-merged-branch delete-merged-branch bot deleted the use_temp_dir_in_project_for_precompile branch May 29, 2020 14:29
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.

2 participants