From ea143e7498f1add7c303de1f2987bcbf02378004 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 8 Jun 2018 12:55:15 +0300 Subject: [PATCH] build(docs-infra): upgrade preview server to latest `@types/shelljs` (#24372) PR Close #24372 --- .../dockerbuild/scripts-js/lib/clean-up/build-cleaner.ts | 3 +-- .../scripts-js/lib/upload-server/build-creator.ts | 3 +-- .../dockerbuild/scripts-js/lib/verify-setup/helper.ts | 3 +-- aio/aio-builds-setup/dockerbuild/scripts-js/package.json | 2 +- aio/aio-builds-setup/dockerbuild/scripts-js/yarn.lock | 6 +++--- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/clean-up/build-cleaner.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/clean-up/build-cleaner.ts index 3a23b19096..a5fef4bb4b 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/clean-up/build-cleaner.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/clean-up/build-cleaner.ts @@ -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) { diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/build-creator.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/build-creator.ts index cfb3ba616f..899b3ab7be 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/build-creator.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/build-creator.ts @@ -106,8 +106,7 @@ export class BuildCreator extends EventEmitter { } try { - // Undocumented signature (see https://github.com/shelljs/shelljs/pull/663). - (shell as any).chmod('-R', 'a-w', outputDir); + shell.chmod('-R', 'a-w', outputDir); shell.rm('-f', inputFile); resolve(); } catch (err) { diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/helper.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/helper.ts index 7a61b22756..e5b2322494 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/helper.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/helper.ts @@ -98,8 +98,7 @@ class Helper { const prDir = this.getPrDir(pr, isPublic); if (fs.existsSync(prDir)) { - // Undocumented signature (see https://github.com/shelljs/shelljs/pull/663). - (shell as any).chmod('-R', 'a+w', prDir); + shell.chmod('-R', 'a+w', prDir); shell.rm('-rf', prDir); } } diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/package.json b/aio/aio-builds-setup/dockerbuild/scripts-js/package.json index 118efadfbb..3ca9ff2d57 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/package.json +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/package.json @@ -33,7 +33,7 @@ "@types/jasmine": "^2.6.0", "@types/jsonwebtoken": "^7.2.3", "@types/node": "^8.0.30", - "@types/shelljs": "^0.7.4", + "@types/shelljs": "^0.8.0", "@types/supertest": "^2.0.3", "concurrently": "^3.5.0", "nodemon": "^1.12.1", diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/yarn.lock b/aio/aio-builds-setup/dockerbuild/scripts-js/yarn.lock index 68f3584307..73ef310751 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/yarn.lock +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/yarn.lock @@ -69,9 +69,9 @@ "@types/express-serve-static-core" "*" "@types/mime" "*" -"@types/shelljs@^0.7.4": - version "0.7.4" - resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.4.tgz#137b5f31306eaff4de120ffe5b9d74b297809cfc" +"@types/shelljs@^0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.8.0.tgz#0caa56b68baae4f68f44e0dd666ab30b098e3632" dependencies: "@types/glob" "*" "@types/node" "*"