@jterrazz/typescript
v5.3.0
Published
Drop-in TypeScript build tooling with zero configuration.
Readme
@jterrazz/typescript
Drop-in TypeScript build tooling with zero configuration.
Installation
npm install @jterrazz/typescriptUsage
1. Choose a TypeScript configuration
// tsconfig.json - Pick one:
{ "extends": "@jterrazz/typescript/presets/tsconfig/node" } // Node.js projects
{ "extends": "@jterrazz/typescript/presets/tsconfig/next" } // Next.js projects
{ "extends": "@jterrazz/typescript/presets/tsconfig/expo" } // Expo/React Native2. Use the CLI
npx typescript build # Build application (ESM + types)
npx typescript bundle # Bundle library (ESM + CJS + types)
npx typescript start # Run the built application
npx typescript dev # Build, run, and rebuild on changesWhat you get
- Blazing fast — Powered by tsdown / Rolldown (Rust)
- Zero configuration — Works out of the box
- Multiple outputs — ESM + CommonJS + TypeScript declarations
- Source maps — Full debugging support
Build outputs
| Command | Output | Description |
| ------------------- | ----------------- | ----------------------- |
| typescript build | dist/index.js | ESM bundle |
| | dist/index.d.ts | TypeScript declarations |
| typescript bundle | dist/index.js | ESM bundle |
| | dist/index.cjs | CommonJS bundle |
| | dist/index.d.ts | TypeScript declarations |
| typescript start | — | Runs dist/index.js |
| typescript dev | dist/index.js | Watch + rebuild + run |
Project structure
your-project/
├── src/
│ ├── index.ts # Main entry point
│ └── instrumentation.ts # Optional instrumentation entry point
├── dist/ # Generated files
└── tsconfig.json # Extends this packageHow it works
The package uses a fully compiled toolchain — no JavaScript in the hot path:
| Step | Tool | Language | | ------------ | ------------------------------------- | -------- | | Transpile | Oxc (via tsdown) | Rust | | Bundle | Rolldown | Rust | | Declarations | tsdown built-in | Rust |
License
MIT © Jean-Baptiste Terrazzoni
