Skip to content

Repository files navigation

ts-hajime

Bootstrap a TypeScript npm library in one command.

npx ts-hajime

What you get

  • Oxlint and Oxfmt for linting and formatting
  • tsdown for building — outputs both ESM and CJS
  • vitest for testing
  • tsx for running TypeScript directly
  • Preconfigured tsconfig.json, vitest.config.ts, oxlint.config.ts, oxfmt.config.ts, and package.json
  • GitHub Actions CI, Husky pre-commit hooks, and .gitignore out of the box
  • Example code for both library exports and npx commands
  • VSCode settings: file nesting, format-on-save, TSDK path

Folder Structure

Commands

Command Description
npm run build Build the library
npm test Run tests
npm run lint Lint and auto-fix
npm run format Format code
npm run tsc Type check
npm run npx Test your npx command locally

About

Delightfully bootstraps TypeScript npm libraries.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages