# packsy

> Start development of a package with pre-defined eslint, prettier, babel and rollup configuration

Latest version **0.2.5** (published 2026-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install packsy
pnpm add packsy
yarn add packsy
bun add packsy
```

Provides the commands `eslint`, `packsy`.

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2026-01-16 |
| First published | 2019-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 16 |
| Dependencies | 36 |
| Unpacked size | 19.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Markus Wetzel |
| Maintainers | markusjwetzel |
| Keywords | package development, eslint, prettier, babel, rollup |

## Links

- npm: https://www.npmjs.com/package/packsy
- Repository: https://github.com/ProAI/packsy
- Issues: https://github.com/ProAI/packsy/issues
- npm.io page: https://npm.io/package/packsy

## Dependencies (36)

- [husky](https://npm.io/package/husky.md) ^4.3.8
- [eslint](https://npm.io/package/eslint.md) ^8.57.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^3.0.1
- [rimraf](https://npm.io/package/rimraf.md) ^6.1.2
- [rollup](https://npm.io/package/rollup.md) ^4.55.1
- [prettier](https://npm.io/package/prettier.md) ^3.8.0
- [cross-env](https://npm.io/package/cross-env.md) ^10.1.0
- [npm-which](https://npm.io/package/npm-which.md) ^3.0.1
- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.28.6
- [micromatch](https://npm.io/package/micromatch.md) ^4.0.8
- [typescript](https://npm.io/package/typescript.md) ^5.9.3
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.28.6
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.6
- [lint-staged](https://npm.io/package/lint-staged.md) ^16.2.7
- [concurrently](https://npm.io/package/concurrently.md) ^9.2.1
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^22.0.0
- [read-package-up](https://npm.io/package/read-package-up.md) ^12.0.0
- [lodash.camelcase](https://npm.io/package/lodash.camelcase.md) ^4.3.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.28.6
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.28.5
- [@rollup/plugin-json](https://npm.io/package/@rollup/plugin-json.md) ^6.1.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.37.4
- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) ^7.28.6
- [@rollup/plugin-babel](https://npm.io/package/@rollup/plugin-babel.md) ^6.1.0
- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) ^19.0.4
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.31.0
- [@rollup/plugin-terser](https://npm.io/package/@rollup/plugin-terser.md) ^0.4.4
- [@rollup/plugin-replace](https://npm.io/package/@rollup/plugin-replace.md) ^6.0.3
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.0.1
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.10.2
- [@rollup/plugin-commonjs](https://npm.io/package/@rollup/plugin-commonjs.md) ^29.0.0
- [@babel/preset-typescript](https://npm.io/package/@babel/preset-typescript.md) ^7.28.5
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^7.8.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^5.1.0
- [@rollup/plugin-node-resolve](https://npm.io/package/@rollup/plugin-node-resolve.md) ^16.0.3
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^7.8.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.2.5 (latest) — 2026-01-16
- 0.2.4 — 2024-05-25
- 0.2.3 — 2024-05-05
- 0.2.2 — 2021-02-25
- 0.2.1 — 2020-03-14
- 0.2.0 — 2020-03-14
- 0.1.8 — 2019-04-24
- 0.1.7 — 2019-04-06
- 0.1.6 — 2019-04-02
- 0.1.5 — 2019-03-27
- 0.1.4 — 2019-03-27
- 0.1.3 — 2019-03-27
- 0.1.2 — 2019-03-23
- 0.1.1 — 2019-03-23
- 0.1.0 — 2019-03-22

## README

# 📦 Packsy

This package helps you to set up a new npm package blazing fast. Use eslint, prettier, babel and rollup with zero configuration.

🛠 See [packsy-starter](https://github.com/ProAI/packsy-starter) for usage example and starter kit.

## Installation

```shell
npm install packsy
# or
yarn add packsy
```

## Commands

| Name                | Description                                                              |
| ------------------- | ------------------------------------------------------------------------ |
| `packsy build`      | Builds production ready bundles with Rollup. Output directory is `dist`. |
| `packsy dev`        | Compiles files for development with Babel. Output directory is `lib`.    |
| `packsy format`     | Formats all files. All Prettier cli options can be used.                 |
| `packsy lint`       | Lints all files. All ESLint cli options can be used.                     |
| `packsy pre-commit` | Formats and lints all staged files, validates `package.json`.            |
| `packsy validate`   | Lints all files. validates `package.json`.                               |

## Prettier and ESLint configs

The package provides a default Prettier and ESLint configuration. See `.prettierrc.js` and `.eslintrc.js` in [packsy-starter](https://github.com/ProAI/packsy-starter) for usage.

## Development workflow (linked package)

Link the package as usual using yarn's or npm's `link`/`unlink` commands first. Then execute `packsy dev`.

`packsy dev` compiles all files with babel in watch mode, so that a file will be compiled every time that you change it.

## Projects that use Packsy

- 🚚 [react-transporter](https://github.com/ProAI/react-transporter)
- 🎨 [react-essentials](https://github.com/ProAI/react-essentials)
- 📥 [react-stacks](https://github.com/ProAI/react-stacks)
- 🏷️ [react-metadata](https://github.com/ProAI/react-metadata)
- 🌍 [intlized-components](https://github.com/ProAI/intlized-components)
- 🌟 [extended-components](https://github.com/ProAI/extended-components)

## FAQ

**What is the difference between `packsy build` and `packsy dev`?**

First the output folders are different (`dist` for build and `lib` for dev command). Second the build command uses Rollup (with Babel) while dev uses only Babel. Using only Babel leads to faster compile times, which is useful for development. Also the dev command uses the watch mode of Babel.

## Inspiration

This package is inspired by Kent C. Dodds's awesome package [kcd-scripts](https://github.com/kentcdodds/kcd-scripts).

## License

This package is released under the [MIT License](LICENSE).

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