build(docs-infra): upgrade preview server to latest @types/shelljs (#24372)

PR Close #24372
This commit is contained in:
George Kalpakas
2018-06-08 12:55:15 +03:00
committed by Miško Hevery
parent 0139173c7c
commit 18c4976f3b
5 changed files with 7 additions and 10 deletions

View File

@ -52,8 +52,7 @@ export class BuildCleaner {
protected removeDir(dir: string) {
try {
if (shell.test('-d', dir)) {
// Undocumented signature (see https://github.com/shelljs/shelljs/pull/663).
(shell as any).chmod('-R', 'a+w', dir);
shell.chmod('-R', 'a+w', dir);
shell.rm('-rf', dir);
}
} catch (err) {