@pkg-tools/clean
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@pkg-tools/clean

A build artifact cleaning tool with typed configuration.

@pkg-tools/clean::version @pkg-tools/clean::downloads

This CLI is a thin abstraction on top of ShellJs. It centralizes our usage of ShellJS's rm command.

Install

# w/ pnpm
pnpm add -D @pkg-tools/clean @pkg-tools/config

# w/ yarn
yarn add -D @pkg-tools/clean @pkg-tools/config

# w/ npm
npm install -D @pkg-tools/clean @pkg-tools/config

Usage

In your package.json, you can use the exported cli clean in your clean script e.g.

"scripts": {
  "clean": "clean"
}

Configure

Define a pkg.config.ts in the root of your package and add the following.

import { defineConfig } from '@pkg-tools/config';

export default defineConfig({
  clean: {
    directory: './dist',
  },
});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @pkg-tools/clean

Weekly Downloads

16

Version

1.0.1

License

MIT

Unpacked Size

6.58 kB

Total Files

13

Last publish

Collaborators

  • joemckenney