# create-ts-package-template

> Typescript template for creating and publishing with rollup, typescript, jest, eslint, prettier, and husky

Latest version **1.0.10** (published 2024-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-ts-package-template
pnpm add create-ts-package-template
yarn add create-ts-package-template
bun add create-ts-package-template
```

Provides the command `create-ts-package-template`.

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2024-06-09 |
| First published | 2023-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Christopher Hawke |
| Maintainers | cdhawke |
| Keywords | typescript, template, package, eslint, rollup, jest, husky, prettier |

## Links

- npm: https://www.npmjs.com/package/create-ts-package-template
- Repository: https://github.com/cdhawke/ts-package-template
- Homepage: https://github.com/cdhawke/ts-package-template#ts-package-template
- Issues: https://github.com/cdhawke/ts-package-template/issues
- npm.io page: https://npm.io/package/create-ts-package-template

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.10 (latest) — 2024-06-09
- 1.0.9 — 2024-06-08
- 1.0.8 — 2023-07-17
- 1.0.7 — 2023-01-05
- 1.0.6 — 2023-01-04
- 1.0.5 — 2023-01-04
- 1.0.4 — 2023-01-04
- 1.0.3 — 2023-01-04
- 1.0.2 — 2023-01-04

## README

# create-ts-package-template

Typescript template for creating and publishing with rollup, typescript, jest, eslint, prettier, and husky

## Usage

```sh
npx create-ts-package-template package-name
```

## React

To add React linting and compatibility for publishing things like components, you can specify the
`--react` flag during creation:

```sh
npx create-ts-package-template package-name --react
```

You can then `cd` into the `package-name` directory and `build`, `test` or `publish`

## Building

```sh
yarn build
```

Or, to minify and remove source maps:

```sh
yarn build-production
```

## Testing

```sh
yarn test
```

Note: If publishing for a web app, you may need the `jsdom` `testEnvironment` in the `jest.config.js`
See https://jestjs.io/docs/configuration#testenvironment-string

## Publishing

```sh
yarn publish
```

This should build the package with rollup, use the specified version, and publish the results.

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