Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use execFileSync in typing installer#29816

Merged
sheetalkamat merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
timicrosoft/TypeScript:tiCopy head branch name to clipboard
Feb 15, 2019
Merged

Use execFileSync in typing installer#29816
sheetalkamat merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
timicrosoft/TypeScript:tiCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.