File tree Expand file tree Collapse file tree
build-tests/localization-plugin-test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const fsx = require ( 'fs-extra ' ) ;
1+ const { FileSystem } = require ( '@microsoft/node-core-library ' ) ;
22const child_process = require ( 'child_process' ) ;
33const path = require ( 'path' ) ;
44const process = require ( 'process' ) ;
@@ -12,9 +12,9 @@ function executeCommand(command) {
1212
1313// Clean the old build outputs
1414console . log ( `==> Starting build.js for ${ path . basename ( process . cwd ( ) ) } ` ) ;
15- fsx . emptyDirSync ( 'dist' ) ;
16- fsx . emptyDirSync ( 'lib' ) ;
17- fsx . emptyDirSync ( 'temp' ) ;
15+ FileSystem . ensureEmptyFolder ( 'dist' ) ;
16+ FileSystem . ensureEmptyFolder ( 'lib' ) ;
17+ FileSystem . ensureEmptyFolder ( 'temp' ) ;
1818
1919LocJsonPreprocessor . preprocessLocJsonFiles ( {
2020 srcFolder : path . resolve ( __dirname , 'src' ) ,
Original file line number Diff line number Diff line change 99 },
1010 "dependencies" : {
1111 "@microsoft/set-webpack-public-path-plugin" : " 2.3.3" ,
12+ "@microsoft/node-core-library" : " 3.19.2" ,
1213 "@rushstack/localization-plugin" : " 0.0.0" ,
1314 "@types/webpack-env" : " 1.13.0" ,
14- "fs-extra" : " ~7.0.1" ,
1515 "@microsoft/rush-stack-compiler-3.5" : " 0.4.2" ,
1616 "ts-loader" : " 6.0.0" ,
1717 "webpack" : " ~4.31.0" ,
Original file line number Diff line number Diff line change 1- const fsx = require ( 'fs-extra ' ) ;
1+ const { FileSystem } = require ( '@microsoft/node-core-library ' ) ;
22const child_process = require ( 'child_process' ) ;
33const path = require ( 'path' ) ;
44const process = require ( 'process' ) ;
@@ -12,9 +12,9 @@ function executeCommand(command) {
1212
1313// Clean the old build outputs
1414console . log ( `==> Starting build.js for ${ path . basename ( process . cwd ( ) ) } ` ) ;
15- fsx . emptyDirSync ( 'dist' ) ;
16- fsx . emptyDirSync ( 'lib' ) ;
17- fsx . emptyDirSync ( 'temp' ) ;
15+ FileSystem . ensureEmptyFolder ( 'dist' ) ;
16+ FileSystem . ensureEmptyFolder ( 'lib' ) ;
17+ FileSystem . ensureEmptyFolder ( 'temp' ) ;
1818
1919LocJsonPreprocessor . preprocessLocJsonFiles ( {
2020 srcFolder : path . resolve ( __dirname , 'src' ) ,
You can’t perform that action at this time.
0 commit comments