# bebbi-scripts

> Helps build the code

Latest version **0.7.10** (published 2025-11-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install bebbi-scripts
pnpm add bebbi-scripts
yarn add bebbi-scripts
bun add bebbi-scripts
```

Provides the command `bebbi-scripts`.

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.7.10 |
| Published | 2025-11-05 |
| First published | 2023-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 34 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stefan Baumann |
| Maintainers | bebbi |

## Links

- npm: https://www.npmjs.com/package/bebbi-scripts
- Repository: https://github.com/bebbi/bebbi-scripts
- Homepage: https://www.gigmade.com
- Issues: https://github.com/bebbi/bebbi-scripts/issues
- npm.io page: https://npm.io/package/bebbi-scripts

## Dependencies (34)

- [glob](https://npm.io/package/glob.md) ^10.3.10
- [jest](https://npm.io/package/jest.md) ^29.7.0
- [path](https://npm.io/package/path.md) ^0.12.7
- [husky](https://npm.io/package/husky.md) ^8.0.3
- [is-ci](https://npm.io/package/is-ci.md) ^3.0.1
- [which](https://npm.io/package/which.md) ^4.0.0
- [doctoc](https://npm.io/package/doctoc.md) ^2.2.1
- [eslint](https://npm.io/package/eslint.md) ^8.56.0
- [rimraf](https://npm.io/package/rimraf.md) ^5.0.5
- [ts-jest](https://npm.io/package/ts-jest.md) ^29.2.5
- [webpack](https://npm.io/package/webpack.md) ^5.89.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.2.0
- [prettier](https://npm.io/package/prettier.md) ^3.2.5
- [@swc/core](https://npm.io/package/@swc/core.md) ^1.11.11
- [@swc/jest](https://npm.io/package/@swc/jest.md) ^0.2.37
- [ts-loader](https://npm.io/package/ts-loader.md) ^9.5.1
- [lodash.has](https://npm.io/package/lodash.has.md) ^4.5.2
- [typescript](https://npm.io/package/typescript.md) ^5.4.5
- [@types/jest](https://npm.io/package/@types/jest.md) ^29.5.11
- [@types/node](https://npm.io/package/@types/node.md) ^20.11.4
- [cosmiconfig](https://npm.io/package/cosmiconfig.md) ^9.0.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.3
- [lint-staged](https://npm.io/package/lint-staged.md) ^15.2.2
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) 7.0.1
- [tsconfig.js](https://npm.io/package/tsconfig.js.md) ^3.0.0
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^5.1.4
- [concurrently](https://npm.io/package/concurrently.md) ^8.2.2
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^21.1.1
- [@types/eslint](https://npm.io/package/@types/eslint.md) ^8.56.2
- [jest-serializer-path](https://npm.io/package/jest-serializer-path.md) ^0.1.15
- [jest-watch-typeahead](https://npm.io/package/jest-watch-typeahead.md) ^2.2.2
- [jest-environment-jsdom](https://npm.io/package/jest-environment-jsdom.md) ^29.7.0
- [eslint-config-react-app](https://npm.io/package/eslint-config-react-app.md) ^7.0.1
- [jest-snapshot-serializer-raw](https://npm.io/package/jest-snapshot-serializer-raw.md) ^1.2.0

## Recent versions

- 0.7.10 (latest) — 2025-11-05
- 0.7.9 — 2025-11-05
- 0.7.8 — 2025-03-21
- 0.7.7 — 2025-03-17
- 0.7.6 — 2025-03-17
- 0.7.5 — 2025-03-17
- 0.7.4 — 2025-02-20
- 0.7.3 — 2025-02-12
- 0.7.2 — 2025-01-25
- 0.7.1 — 2025-01-20
- 0.7.0 — 2025-01-15
- 0.6.2 — 2025-01-15
- 0.6.1 — 2024-12-19
- 0.6.0 — 2024-12-13
- 0.5.8 — 2024-12-03
- … 21 more at https://npm.io/package/bebbi-scripts/versions

## README

<div align="center">
<h1>bebbi-scripts 🛠📦</h1>

<p>CLI toolbox for common project scripts</p>
</div>

## What

Maintain library projects.

Commands for `init`, `validate`, `test`, `lint`, `format`, `build`.

Like kcd-scripts, but

✅ written in TS<br />
✅ tsc builds<br />
✅ outputs `esm`, `cjs`, `types`<br />
✅ handles `ERR_UNSUPPORTED_DIR_IMPORT` issues<br />
✅ yarn berry<br />
✅ yarn workspace<br />
✅ customize<br />
🚫 yarn pnp<br />
🚫 npm<br />
⚠️ Windows: not working on Powershell/scoop.sh, your support appreciated<br />

## How

Inside your new module folder, run

1. `git init` (optional, bebbi-scripts will install pre-commit hooks)

2. `yarn dlx bebbi-scripts init`

The script assumes that your input is `src`, outDir is `dist`

### Overriding Config

#### tsconfig.json

```json
{
  "extends": "bebbi-scripts/tsconfig.json",
  "others_are_optional": "..."
}
```

#### eslint

You can extend the `react-scripts` eslint config which ships with this package.
Example `package.json` section:

```json
{
  "eslintConfig": {
    "extends": ["react-app"],
    "other": "..."
  }
}
```

#### Customizing bebbi-scripts

To fully customize bebbi-scripts, make it a dependency of your own script.

Check out `gig-utils` for a module that extends `bebbi-scripts` with a config for babel and storybook.

Note that if you have a `typecheck` script (normally set to `bebbi-scripts typecheck`)
that will be run as part of the `validate` script (which is run as part of the `pre-commit` script as well).

## Inspiration

[kcd-scripts](https://github.com/kentcdodds/kcd-scripts)<br/>
[react-scripts](https://github.com/facebook/create-react-app/tree/main/packages/react-scripts)

## 💡 Bugs and Features

Help us by adding pull requests to issues!

## Contributors

[amaster507](https://github.com/amaster507)<br />
[verneleem](https://github.com/verneleem)<br />
[bebbi](https://github.com/bebbi)

## License

MIT

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