Skip to content

Commit 0f75796

Browse files
committed
fix: use fs/promises in favor of fs.promises
1 parent 02fc75d commit 0f75796

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/clean.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
'use strict'
22

3-
const fs = require('fs')
3+
const fs = require('fs/promises')
44
const log = require('./log')
55

66
async function clean (gyp, argv) {
77
// Remove the 'build' dir
88
const buildDir = 'build'
99

1010
log.verbose('clean', 'removing "%s" directory', buildDir)
11-
await fs.promises.rm(buildDir, { recursive: true, force: true })
11+
await fs.rm(buildDir, { recursive: true, force: true })
1212
}
1313

1414
module.exports = function (gyp, argv, callback) {

lib/remove.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const fs = require('fs').promises
3+
const fs = require('fs/promises')
44
const path = require('path')
55
const log = require('./log')
66
const semver = require('semver')

0 commit comments

Comments
 (0)