@sigbt/tskit
v3.0.0
Published
My personal TypeScript init kit.
Downloads
17
Readme
@sigbt/tskit
@sigbt/tskit is @sigismundbt’s personal TypeScript scaffolding tool,
used to quickly bootstrap new TypeScript projects with consistent structure and configuration.
It uses pnpm exclusively and runs pnpm init automatically.
🚀 Usage
npx @sigbt/tskittskit will automatically initialize a new project,
then guide you through an interactive setup process.
🧩 Supported Project Types
| Type | Description |
| ------------ | ----------------------------------------------------------------------------- |
| Library | Pure TypeScript package ready for npm publishing. |
| CLI Tool | Command-line scaffold with Yargs, Clack, or Hybrid interface. |
| Backend | Node backend scaffold with optional database (Mongoose, Prisma, or none). |
⚙️ What It Does
Common setup
- Creates directories:
src/,dist/ - Adds configs:
.prettierrctsconfig.jsonvitest.config.ts.gitignore.npmignoremostir.config.mjs
- Injects default
package.jsonscripts - Installs dev dependencies:
typescriptvitestprettierbumppmostir
CLI projects
- Generates
src/cli/bin.ts - Adds:
#!/usr/bin/env nodeshebang- executable permission (
chmod 755) - proper
binentry inpackage.json
- Choose CLI type: Yargs, Clack, or Hybrid
Backend projects
Creates:
src/
controllers/
middleware/
routes/
lib/- Optional integrations: Mongoose or Prisma
- Adds
error.middleware.ts - Prepares
.envand base scripts
Library projects
- Minimal structure for npm publishing
- Auto-adds
exports,types, andmainfields - Supports hybrid (CLI + library) layout
🧰 Scripts
| Command | Description |
| ------------ | ----------------------- |
| pnpm dev | Run directly with tsx |
| pnpm build | Build via mostir |
| pnpm start | Run built output |
| pnpm test | Run tests with vitest |
📦 Requirements
- Node.js ≥ 18
- pnpm installed globally
🧾 Note
This package is primarily for personal use.
Public use is allowed, but updates are made only when improvements are needed.
