tsc-cleaner

0.0.3 • Public • Published

tsc-cleaner

Small and simple lib for cleaning build files and folders before or after node builds (tsc (typescript), **webpack **, etc.).

The library is usable on Windows and Unix-like systems (macos, linux, ...)


NPM version GitHub version GitHub release (latest by date)


Installation

Manager Command
NPM npm install -D tsc-cleaner
YARN yarn add -D tsc-cleaner
PNPM pnpm add -D tsc-cleaner

Usage

Command line

npx tsc-cleaner [--arguments]

example:

npx tsc-cleaner --dir=dir_path

npx tsc-cleaner --file=file_path

npx tsc-cleaner --dir=dir_path --file=file_path

Javascript

const clean = require('tsc-cleaner');

clean({dir: 'dir_path'});

clean({file: 'file_path'});

clean({dir: 'dir_path', file: 'file_path'});

Argument dir is always recursive


Use in practice

(package.json)

{
  "scripts": {
    "prebuild": "tsc-cleaner --dir=lib",
    "build": "tsc",
    "build:pack": "npm run build && npm pack"
  }
}

License

MIT © Dárius Bokor

/tsc-cleaner/

    Package Sidebar

    Install

    npm i tsc-cleaner

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    7.81 kB

    Total Files

    7

    Last publish

    Collaborators

    • weroro-sk