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

speeding up builds with tsc in child process #13588

Closed
ORESoftware opened this issue Jan 20, 2017 · 2 comments
Closed

speeding up builds with tsc in child process #13588

ORESoftware opened this issue Jan 20, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@ORESoftware
Copy link

ORESoftware commented Jan 20, 2017

I have this line of code in Node.js which sends stdin to a bash child process

shell.stdin.write('tsc --jsx react --module amd --target es5 ' + path + '\n');

even transpiling 1 file takes about 1.5 seconds. Is there anyway I could somehow speed this up? the only thing I can think of is to have tsc be already running as a server and send it an ipc or socket message.

The problem with using tsc --watch is that I need to add a hook, such that when tsc is done with a transpilation I can run some other code. I would be happy to use tsc --watch to speed this up but I don't know how in this case.

@mhegazy
Copy link
Contributor

mhegazy commented Jan 20, 2017

Please see #13538

@mhegazy mhegazy added the Duplicate An existing issue was already created label Jan 20, 2017
@ORESoftware
Copy link
Author

thanks, looking at that convo, it appears that --skipLibCheck is the best option for my needs, but I will keep researching

@mhegazy mhegazy closed this as completed Apr 21, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants