Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Remove rimraf #509

Merged
merged 11 commits into from
Jan 3, 2024
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 14, 16, 18]
node: [14, 16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
Expand All @@ -24,8 +24,8 @@ jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
Expand All @@ -34,8 +34,8 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
Expand Down
5 changes: 2 additions & 3 deletions bin/c8.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

const foreground = require('foreground-child')
const { outputReport } = require('../lib/commands/report')
const { promises } = require('fs')
const { promises, rmSync } = require('fs')
const { promisify } = require('util')
const rimraf = require('rimraf')
const {
buildYargs,
hideInstrumenteeArgs,
Expand All @@ -29,7 +28,7 @@ async function run () {
}

if (argv.clean) {
await promisify(rimraf)(argv.tempDirectory)
await promisify(rmSync)(argv.tempDirectory, { recursive: true, force: true })
bcoe marked this conversation as resolved.
Show resolved Hide resolved
}

await promises.mkdir(argv.tempDirectory, { recursive: true })
Expand Down
Loading
Loading