/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
scripts/rm.mjs
13 строк
366 B
Mayur
fix(scripts): correct typo in rm.mjs error message (#87015)
7 часов назад
Не верифицирован
7 часов назад
705cb06
Код
Авторство
О чём код?
// @ts-check import { rm } from 'fs/promises' import { join } from 'path' const args = process.argv.slice(2) if (args.length === 0) { throw new Error('rm.mjs: requires at least one parameter') } for (const arg of args) { const path = join(process.cwd(), arg) console.log(`rm.mjs: deleting path "${path}"`) await rm(path, { recursive: true, force: true }) }