Skip to content

Use execFileSync in typing installer #29816

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 1 commit into from
Feb 15, 2019
Merged

Use execFileSync in typing installer #29816

merged 1 commit into from
Feb 15, 2019

Conversation

sheetalkamat
Copy link
Member

No description provided.

return `--user-agent="typesInstaller/${tsVersion}"`;
}
const npmInstall = "install", ignoreScripts = "--ignore-scripts", saveDev = "--save-dev";
const commandBaseLength = npmInstall.length + ignoreScripts.length + saveDev.length + getUserAgent("").length + 5;
Copy link
Member

Choose a reason for hiding this comment

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

Should just say getUserAgent("0.0.0") rather than adding the + 5, IMO.

Copy link
Member Author

Choose a reason for hiding this comment

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

  • 5 is for the spaces around them (the tsversion length is added later on while computing actual command length as we use to.

Copy link
Member

Choose a reason for hiding this comment

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

Ah. That was not immediately clear, sorry.

@sheetalkamat
Copy link
Member Author

Ping @RyanCavanaugh

@sheetalkamat sheetalkamat merged commit b2b360a into master Feb 15, 2019
@sheetalkamat sheetalkamat deleted the ti branch February 15, 2019 18:47
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.

3 participants