Skip to content

Commit

Permalink
fix: use rimraf named import
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Buceta <frbuceta@gmail.com>
  • Loading branch information
frbuceta committed Apr 11, 2023
1 parent 7bf100c commit 1417f7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/build/bin/run-clean.js
Expand Up @@ -22,10 +22,10 @@ Example usage:
*/

'use strict';
const {rimrafSync} = require('rimraf');
const path = require('path');

function run(argv, options) {
const rimraf = require('rimraf');
const path = require('path');
const globPatterns = argv.slice(2);
const removed = [];
if (!globPatterns.length) {
Expand All @@ -46,7 +46,7 @@ function run(argv, options) {
);
}
} else {
if (!options.dryRun) rimraf.sync(pattern);
if (!options.dryRun) rimrafSync(pattern);
removed.push(pattern);
}
});
Expand Down
Expand Up @@ -14,16 +14,13 @@ import {once} from 'events';
import http from 'http';
import {AddressInfo} from 'net';
import path from 'path';
import rimrafCb from 'rimraf';
import {rimraf} from 'rimraf';
import tunnel, {ProxyOptions as TunnelProxyOptions} from 'tunnel';
import {URL} from 'url';
import util from 'util';
import {HttpCachingProxy, ProxyOptions} from '../../http-caching-proxy';

const CACHE_DIR = path.join(__dirname, '.cache');

const rimraf = util.promisify(rimrafCb);

describe('HttpCachingProxy', () => {
let stubServerUrl: string;
before(givenStubServer);
Expand Down

0 comments on commit 1417f7b

Please sign in to comment.