|
|
|||
|
||||
OverviewThe moment a working TypeScript developer ships and discovers that TypeScript-as-shipped has its own vocabulary and failure modes. This book is the operational layer. You know the language. You know most of the type system. Now you need the operational answers: which tsconfig flag, which build tool, how to publish a library that resolves on Node 24 and Bun 1.3 and Deno 2.7 and the browser, how to keep the CI pipeline under sixty seconds, how to make attw happy, how to tame tsc on a real monorepo. TypeScript in Production is the book for that wall. Twenty-eight chapters across seven parts. Pinned to TypeScript 6.0, Node 24 LTS, Bun 1.3.x, Deno 2.7.x, Vite 8, and Vitest 4. Every example runnable in the public companion repository at github.com/gabrielanhaia/the-typescript-library-examples. What's inside: - Part I - tsconfig in depth. Every flag in the strict family walked deliberately, target/lib per runtime, the moduleResolution decision matrix (bundler/node16/nodenext), project references, isolatedModules, isolatedDeclarations, verbatimModuleSyntax. - Part II - build and transpile pipelines. tsc as type-checker vs as builder; esbuild, swc, tsx, and sucrase compared honestly; tsup, unbuild, and tshy as opinionated library bundlers; Vite for apps; Rollup for libraries. - Part III - each runtime first-class. Node 24, Bun 1.3, Deno 2.7, the browser, and writing libraries that work in all four without surprises. - Part IV - library authoring. package.json done right (validated with attw), generating .d.ts, public API hygiene, semver for types, publishing to npm and JSR. - Part V - monorepos. pnpm + Turbo + project references, what each gives you, when each is the bottleneck. - Part VI - performance. TS Server diagnostics, type-perf patterns, the build-time vs check-time distinction, keeping a real CI pipeline under sixty seconds. - Part VII - testing, observability, and migrations. expect-type and tsd for type-level tests, source maps for Sentry and Datadog, three migration playbooks (CommonJS to ESM, node to bundler resolution, single-package to monorepo). Every example is runnable and CI-verified. The companion repository pins TypeScript 6.0, Node 24 LTS, Bun 1.3.x, Deno 2.7.x, Vite 8, and Vitest 4 with a real monorepo and a real publishable library. Who this book is for: senior TypeScript developers hardening services and libraries. The reader knows the language and most of the type system; what they need are the operational answers. The TypeScript Library (a five-book collection): - TypeScript Essentials (Book 1) - The TypeScript Type System: From Generics to DSL-Level Types (Book 2) - Kotlin and Java to TypeScript: A Bridge for JVM Developers (Book 3) - PHP to TypeScript: A Bridge for Modern PHP 8+ Developers (Book 4) - This book - TypeScript in Production: Tooling, Build, and Library Authoring Across Runtimes (Book 5) Landing page: xgabriel.com/the-typescript-library/ Full Product DetailsAuthor: Gabriel AnhaiaPublisher: Independently Published Imprint: Independently Published Dimensions: Width: 15.20cm , Height: 2.10cm , Length: 22.90cm Weight: 0.549kg ISBN: 9798195173982Pages: 412 Publication Date: 01 May 2026 Audience: General/trade , General Format: Paperback Publisher's Status: Active Availability: Available To Order We have confirmation that this item is in stock with the supplier. It will be ordered in for you and dispatched immediately. Table of ContentsReviewsAuthor InformationTab Content 6Author Website:Countries AvailableAll regions |
||||