-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync deps and engines with npm (#2770)
* feat!: update `engines.node` to `^14.17.0 || ^16.13.0 || >=18.0.0` * deps: nopt@^7.0.0 * feat: replace npmlog with proc-log * deps: standard@17.0.0 and fix linting errors * deps: which@3.0.0 - this also promiisifies the build command * deps: glob@8.0.3 * feat: drop rimraf dependency * fix: use fs/promises in favor of fs.promises
- Loading branch information
1 parent
33391db
commit 192eec2
Showing
27 changed files
with
533 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
'use strict' | ||
|
||
const rm = require('rimraf') | ||
const log = require('npmlog') | ||
const fs = require('fs/promises') | ||
const log = require('./log') | ||
|
||
function clean (gyp, argv, callback) { | ||
async function clean (gyp, argv) { | ||
// Remove the 'build' dir | ||
var buildDir = 'build' | ||
const buildDir = 'build' | ||
|
||
log.verbose('clean', 'removing "%s" directory', buildDir) | ||
rm(buildDir, callback) | ||
await fs.rm(buildDir, { recursive: true, force: true }) | ||
} | ||
|
||
module.exports = clean | ||
module.exports = function (gyp, argv, callback) { | ||
clean(gyp, argv).then(callback.bind(undefined, null), callback) | ||
} | ||
module.exports.usage = 'Removes any generated build files and the "out" dir' |
Oops, something went wrong.