build(docs-infra): upgrade preview server to latest @types/shelljs
(#24372)
PR Close #24372
This commit is contained in:

committed by
Miško Hevery

parent
0139173c7c
commit
18c4976f3b
@ -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) {
|
||||
|
Reference in New Issue
Block a user