# @dotcom-tool-kit/typescript

> Tool Kit plugin to build [TypeScript](https://www.typescriptlang.org) code

Latest version **4.2.0** (published 2026-11-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @dotcom-tool-kit/typescript
pnpm add @dotcom-tool-kit/typescript
yarn add @dotcom-tool-kit/typescript
bun add @dotcom-tool-kit/typescript
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 4.2.0 |
| Published | 2026-11-19 |
| First published | 2023-01-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=20.x |
| Dependencies | 4 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | FT.com Platforms Team |
| Maintainers | quarterto, the-ft, robertboulton |

## Links

- npm: https://www.npmjs.com/package/@dotcom-tool-kit/typescript
- Repository: https://github.com/financial-times/dotcom-tool-kit
- Homepage: https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/typescript
- Issues: https://github.com/financial-times/dotcom-tool-kit/issues
- npm.io page: https://npm.io/package/@dotcom-tool-kit/typescript

## Dependencies (4)

- [zod](https://npm.io/package/zod.md) ^3.24.4
- [@dotcom-tool-kit/npx](https://npm.io/package/@dotcom-tool-kit/npx.md) ^1.0.0
- [@dotcom-tool-kit/base](https://npm.io/package/@dotcom-tool-kit/base.md) ^2.1.0
- [@dotcom-tool-kit/logger](https://npm.io/package/@dotcom-tool-kit/logger.md) ^5.0.0

## Recent versions

- 4.2.0 (latest) — 2026-11-19
- 4.2.0-beta.1 (prerelease) — 2026-11-19
- 4.1.0 — 2026-03-24
- 4.1.0-beta.1 — 2026-03-24
- 4.0.1 — 2026-01-15
- 4.0.1-beta.14 — 2026-01-15
- 4.0.1-beta.13 — 2026-01-15
- 4.0.1-beta.12 — 2026-01-15
- 4.0.1-beta.11 — 2026-01-14
- 4.0.1-beta.10 — 2026-01-13
- 4.0.1-beta.9 — 2026-01-13
- 4.0.1-beta.8 — 2026-01-13
- 4.0.1-beta.7 — 2026-01-13
- 4.0.1-beta.6 — 2026-01-13
- 4.0.1-beta.5 — 2026-01-12
- … 49 more at https://npm.io/package/@dotcom-tool-kit/typescript/versions

## README

# @dotcom-tool-kit/typescript

Tool Kit plugin to build [TypeScript](https://www.typescriptlang.org) code

## Installation & Usage

With Tool Kit [already set up](https://github.com/financial-times/dotcom-tool-kit#installing-tool-kit), install this plugin as a dev dependency:

```sh
npm install --save-dev @dotcom-tool-kit/typescript
```

And add it to your repo's `.toolkitrc.yml`:

```yml
plugins:
  - '@dotcom-tool-kit/typescript'
```

<!-- begin autogenerated docs -->
## Tasks

### `TypeScript`

Compile code with `tsc`.
#### Task options

| Property     | Description                                                                                                                                                                                                                               | Type     |
| :----------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- |
| `configPath` | to the [TypeScript config file](https://www.typescriptlang.org/tsconfig). Uses TypeScript's own [tsconfig.json resolution](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson) by default | `string` |
| `build`      | Run Typescript in [build mode](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript).                                                                                                           | `true`   |
| `watch`      | Run Typescript in watch mode.                                                                                                                                                                                                             | `true`   |
| `noEmit`     | Run Typescript with `--noEmit`, for checking your types without outputting compiled Javascript.                                                                                                                                           | `true`   |

_All properties are optional._
<!-- end autogenerated docs -->

---
_Source: https://npm.io/package/@dotcom-tool-kit/typescript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
