Skip to content

Commit

Permalink
cleanup(bundling): replace fs-extra.removeSync() with fs.rmSync() (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip9587 committed Feb 17, 2023
1 parent bb51e98 commit 428391e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"babel-plugin-transform-async-to-promises": "^0.8.15",
"chalk": "^4.1.0",
"dotenv": "~10.0.0",
"fs-extra": "^11.1.0",
"postcss": "^8.4.14",
"rollup": "^2.56.2",
"rollup-plugin-copy": "^3.4.0",
Expand Down
14 changes: 0 additions & 14 deletions packages/rollup/src/executors/rollup/lib/delete-output-dir.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/rollup/src/utils/fs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import { removeSync } from 'fs-extra';
import { rmSync } from 'fs';

/**
* Delete an output directory, but error out if it's the root of the project.
Expand All @@ -10,5 +10,5 @@ export function deleteOutputDir(root: string, outputPath: string) {
throw new Error('Output path MUST not be project root directory!');
}

removeSync(resolvedOutputPath);
rmSync(resolvedOutputPath, { recursive: true, force: true });
}

0 comments on commit 428391e

Please sign in to comment.