UNPKG

@uswds/web-components

Version:

> [!CAUTION] > Work on the next version of the Design System is happening in this repo. The code in this repository is not yet ready for production use.

19 lines (15 loc) 393 B
/* eslint-disable no-undef */ import fs from "node:fs"; const args = process.argv; if (args.length === 2) { console.error("Expected an argument for the directory to be deleted"); process.exit(1); } const dir = args[2]; fs.rm(dir, { recursive: true, force: true }, (err) => { console.info(`Cleaning up old build files...`); if (err) { throw err; } console.info(`Done.`); });