/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/npm/node_modules/node-gyp/lib/clean.js
15 строк
414 B
npm CLI robot
deps: upgrade npm to 11.3.0
11 апр 2025, 00:36
Не верифицирован
11 апр 2025, 00:36
f03e90a
Код
Авторство
О чём код?
'use strict' const fs = require('graceful-fs').promises const log = require('./log') async function clean (gyp, argv) { // Remove the 'build' dir const buildDir = 'build' log.verbose('clean', 'removing "%s" directory', buildDir) await fs.rm(buildDir, { recursive: true, force: true, maxRetries: 3 }) } module.exports = clean module.exports.usage = 'Removes any generated build files and the "out" dir'