A reasonable build tool for bootstrapping TypeScript libraries and CLIs. A modern TSDX replacement.
Setting up a brand new TypeScript library takes hours tinkering with all sorts of configurations and defaults that also has to exported as an ESM or CJS bundle. This project sets up developers with reasonable defaults with a few included DX improvements.
- Smooth developer experience using the Vite bundler that leverages the power of esbuild and Rollup.
- Vitest unit-test framework for blazing fast tests (it's a very similar almost drop-in replacement to Jest).
- Supports
esm,cjsandumdbuilds, fully supporting tree-shaking. - Flexible starter configurations for TypeScript, Prettier, ESLint and more.
- Templates to allow wide variations of tsvite starters.
npm install -g tsvite
npx tsvite create mylib
cd mylib
npm install # or another package manager of your choice yarn/pnpm