We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02fc75d commit 0f75796Copy full SHA for 0f75796
lib/clean.js
@@ -1,14 +1,14 @@
1
'use strict'
2
3
-const fs = require('fs')
+const fs = require('fs/promises')
4
const log = require('./log')
5
6
async function clean (gyp, argv) {
7
// Remove the 'build' dir
8
const buildDir = 'build'
9
10
log.verbose('clean', 'removing "%s" directory', buildDir)
11
- await fs.promises.rm(buildDir, { recursive: true, force: true })
+ await fs.rm(buildDir, { recursive: true, force: true })
12
}
13
14
module.exports = function (gyp, argv, callback) {
lib/remove.js
@@ -1,6 +1,6 @@
-const fs = require('fs').promises
const path = require('path')
const semver = require('semver')
0 commit comments