Skip to content
/ ts-package Public template

A template to bootstrap a typescript package repo

License

Notifications You must be signed in to change notification settings

nip10/ts-package

Repository files navigation

TS Package Template

This is a template for creating a new TS package. It contains a basic directory structure and a few files to get you started.

What's included

  • TypeScript
  • Build tool: Tsup
  • Linter: Eslint
  • Code formatter: Prettier
  • Test suite: Vitest
  • Versioning: Changesets
  • CI/CD: Github Actions

Structure

The main parts of the template are:

.
├── lib
│   ├── index.ts
|── index.ts
├── package.json

All logic should be implemented in the lib directory. The index.ts file in the root directory only exports the lib directory. This is to make it easy to import the package in other packages.

About

A template to bootstrap a typescript package repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published