# clean-publish

> Clean your package before publish

Latest version **7.1.0** (published 2026-05-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install clean-publish
pnpm add clean-publish
yarn add clean-publish
bun add clean-publish
```

Provides the commands `clean-publish`, `clear-package-json`.

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.1.0 |
| Published | 2026-05-21 |
| First published | 2018-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >= 22.0.0 |
| Dependencies | 4 |
| Unpacked size | 27.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 332 |
| Author | Shashkov Danil |
| Maintainers | ai, shashkovdanil |
| Keywords | clean, npm, package, publish |

## Links

- npm: https://www.npmjs.com/package/clean-publish
- Repository: https://github.com/shashkovdanil/clean-publish
- Homepage: https://github.com/shashkovdanil/clean-publish#readme
- Issues: https://github.com/shashkovdanil/clean-publish/issues
- npm.io page: https://npm.io/package/clean-publish

## Dependencies (4)

- [tinyexec](https://npm.io/package/tinyexec.md) ^1.1.2
- [lilconfig](https://npm.io/package/lilconfig.md) ^3.1.3
- [picomatch](https://npm.io/package/picomatch.md) ^4.0.4
- [tinyglobby](https://npm.io/package/tinyglobby.md) ^0.2.16

## Recent versions

- 7.1.0 (latest) — 2026-05-21
- 7.0.1 — 2026-04-30
- 7.0.0 — 2026-04-30
- 6.0.5 — 2026-03-29
- 6.0.4 — 2026-03-15
- 6.0.3 — 2026-02-25
- 6.0.2 — 2026-02-25
- 6.0.1 — 2025-10-22
- 6.0.0 — 2025-10-22
- 5.2.2 — 2025-06-11
- 5.2.1 — 2025-05-29
- 5.2.0 — 2025-05-03
- 5.1.0 — 2024-10-22
- 5.0.0 — 2024-05-21
- 4.4.0 — 2024-04-05
- … 45 more at https://npm.io/package/clean-publish/versions

## README

# Clean Publish

<img src="./img/logo.svg" title="Clean Publish logo by Anton Panachev <pana4eow@yandex.ru>" width="180" height="180" align="right">

Clean Publish is a tool for removing configuration files, fields and script for development from `package.json` before publishing to `npm`.

## Docs
Read full docs **[here](https://github.com/shashkovdanil/clean-publish#readme)**.

---
_Source: https://npm.io/package/clean-publish · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
