Revert "refactor(dev-infra): remove usages and dependency on shelljs (#42394)" (#42829)

This reverts commit f0d857eff8.

PR Close #42829
This commit is contained in:
Andrew Kushnir
2021-07-12 14:58:35 -07:00
parent b33665ab2c
commit 3d668162d9
21 changed files with 228 additions and 208 deletions
-4
View File
@@ -23,10 +23,6 @@ export class GitCommandError extends Error {
// accidentally leak the Github token that might be used in a command,
// we sanitize the command that will be part of the error message.
super(`Command failed: git ${client.sanitizeConsoleOutput(args.join(' '))}`);
// Set the prototype explicitly because in ES5, the prototype is accidentally lost due to
// a limitation in down-leveling.
// https://github.com/Microsoft/TypeScript/wiki/FAQ#why-doesnt-extending-built-ins-like-error-array-and-map-work.
Object.setPrototypeOf(this, GitCommandError.prototype);
}
}