Skip to content

Use execFileSync in typing installer#29816

Merged
sheetalkamat merged 1 commit intomasterfrom
ti
Feb 15, 2019
Merged

Use execFileSync in typing installer#29816
sheetalkamat merged 1 commit intomasterfrom
ti

Conversation

@sheetalkamat
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants