From b6a44bf3f2e51a8d389232cd08cd86b0de9c58c1 Mon Sep 17 00:00:00 2001 From: Phillip Barta Date: Fri, 14 Jan 2022 17:12:30 +0100 Subject: [PATCH] chore(nxdev): scripts use fs-extra and child_process (#8349) --- scripts/documentation/nx-dev-docs-latest-sync.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/documentation/nx-dev-docs-latest-sync.ts b/scripts/documentation/nx-dev-docs-latest-sync.ts index b1896150df..dff299430b 100644 --- a/scripts/documentation/nx-dev-docs-latest-sync.ts +++ b/scripts/documentation/nx-dev-docs-latest-sync.ts @@ -1,9 +1,9 @@ import * as chalk from 'chalk'; import * as yargs from 'yargs'; import { watch } from 'chokidar'; -import * as shell from 'shelljs'; import { BehaviorSubject } from 'rxjs'; import { debounceTime, filter, switchMapTo, tap } from 'rxjs/operators'; +import { execSync } from 'child_process'; /** * Available colours @@ -24,9 +24,8 @@ const argv = yargs }).argv; function sync(): void { - return shell.exec( - 'rsync -avrR --delete ./docs/./ ./nx-dev/nx-dev/public/documentation', - { sync: true } + execSync( + 'rsync -avrR --delete ./docs/./ ./nx-dev/nx-dev/public/documentation' ); }