Skip to content

Commit

Permalink
fix(deps): remove rimraf from tools in favor of native node rm function
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelgrosso1 committed Jul 8, 2024
1 parent 76dd049 commit 488c622
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"google-gax": "^4.3.2",
"google-proto-files": "^4.2.0",
"protobufjs-cli": "1.1.2",
"rimraf": "^5.0.1",
"uglify-js": "^3.17.0",
"walk-up-path": "^3.0.1",
"walkdir": "^0.4.0"
Expand Down
3 changes: 1 addition & 2 deletions tools/test/compileProtos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import * as assert from 'assert';
import {describe, it, beforeEach, afterEach} from 'mocha';
import * as fs from 'fs';
import * as fsp from 'fs/promises';
import {rimraf} from 'rimraf';
import {ncp} from 'ncp';
import * as util from 'util';
import * as path from 'path';
Expand All @@ -42,7 +41,7 @@ const expectedCommonJSResultFile = path.join(resultDir, 'protos.cjs');
describe('compileProtos tool', () => {
beforeEach(async () => {
if (fs.existsSync(testDir)) {
await rimraf(testDir);
await fsp.rm(testDir, {recursive: true, force: true});
}
await mkdir(testDir);
await mkdir(resultDir);
Expand Down
3 changes: 1 addition & 2 deletions tools/test/minify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import * as assert from 'assert';
import {describe, it, beforeEach} from 'mocha';
import * as fs from 'fs';
import {promises as fsp} from 'fs';
import {rimraf} from 'rimraf';
import * as path from 'path';
import * as minify from '../src/minify';

Expand All @@ -26,7 +25,7 @@ const fixturesDir = path.join(__dirname, '..', 'test', 'fixtures');
describe('minify tool', () => {
beforeEach(async () => {
if (fs.existsSync(testDir)) {
await rimraf(testDir);
await fsp.rm(testDir, {recursive: true, force: true});
}
await fsp.mkdir(testDir);
});
Expand Down

0 comments on commit 488c622

Please sign in to comment.