chore(nxdev): scripts use fs-extra and child_process (#8349)

This commit is contained in:
Phillip Barta 2022-01-14 17:12:30 +01:00 committed by GitHub
parent 5e86658a52
commit b6a44bf3f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,9 @@
import * as chalk from 'chalk'; import * as chalk from 'chalk';
import * as yargs from 'yargs'; import * as yargs from 'yargs';
import { watch } from 'chokidar'; import { watch } from 'chokidar';
import * as shell from 'shelljs';
import { BehaviorSubject } from 'rxjs'; import { BehaviorSubject } from 'rxjs';
import { debounceTime, filter, switchMapTo, tap } from 'rxjs/operators'; import { debounceTime, filter, switchMapTo, tap } from 'rxjs/operators';
import { execSync } from 'child_process';
/** /**
* Available colours * Available colours
@ -24,9 +24,8 @@ const argv = yargs
}).argv; }).argv;
function sync(): void { function sync(): void {
return shell.exec( execSync(
'rsync -avrR --delete ./docs/./ ./nx-dev/nx-dev/public/documentation', 'rsync -avrR --delete ./docs/./ ./nx-dev/nx-dev/public/documentation'
{ sync: true }
); );
} }