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

fix: spawn compiler using node #92

Merged
merged 1 commit into from
May 23, 2020
Merged

fix: spawn compiler using node #92

merged 1 commit into from
May 23, 2020

Conversation

merceyz
Copy link
Contributor

@merceyz merceyz commented May 23, 2020

What's the problem this PR addresses?

tsc-watch tries to spawn the TypeScript compiler by passing the path to the javascript file directly to cross-spawn. This doesn't work under Yarn PnP where the file is within a zip archive, so we need to explicitly tell cross-spawn to spawn it using node.

Fixes #79

How did you fix it?

Spawn the typescript compiler using node

@gilamran gilamran merged commit 5027aa3 into gilamran:master May 23, 2020
@merceyz merceyz deleted the pnp branch May 23, 2020 16:35
@gilamran
Copy link
Owner

Thanks for the PR!
Published version 4.2.8

@brokenmass
Copy link

brokenmass commented May 23, 2020

Tested and it works perfectly even after unplugging typescript (the temporary workaround i was using to make tsc-watch work). Thanks

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.

Running from yarn fails
3 participants