# @4s1/ts-config

> TS Config

Latest version **10.0.0** (published 2026-02-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @4s1/ts-config
pnpm add @4s1/ts-config
yarn add @4s1/ts-config
bun add @4s1/ts-config
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 10.0.0 |
| Published | 2026-02-05 |
| First published | 2021-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steffen |
| Maintainers | steffen-4s1, bot-4s1 |
| Keywords | tsconfig, 4s1 |

## Links

- npm: https://www.npmjs.com/package/@4s1/ts-config
- Repository: https://codeberg.org/4s1/ts-config
- Issues: https://codeberg.org/4s1/ts-config/issues
- npm.io page: https://npm.io/package/@4s1/ts-config

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 10.0.0 (latest) — 2026-02-05
- 9.0.0 — 2024-12-24
- 8.1.0 — 2024-04-07
- 8.0.0 — 2024-03-22
- 7.0.0 — 2023-10-31
- 6.0.0 — 2023-10-29
- 5.3.0 — 2023-10-27
- 5.2.1 — 2023-07-25
- 5.2.0 — 2023-07-25
- 5.1.0 — 2023-06-30
- 5.0.1 — 2023-06-15
- 5.0.0 — 2023-06-15
- 4.3.2 — 2023-05-01
- 4.3.1 — 2023-05-01
- 4.3.0 — 2023-04-24
- … 18 more at https://npm.io/package/@4s1/ts-config/versions

## README

# TS Config

This repository is used to centrally manage the base TypeScript configurations for all [4s1 organization](https://codeberg.org/4s1) projects.
All `tsconfig` files are based on recommendation from https://github.com/tsconfig/bases.

**Node 20**

- `@4s1/ts-config/tsconfig-node.json` extends
  1. [@tsconfig/strictest/tsconfig.json](https://github.com/tsconfig/bases/blob/main/bases/strictest.json)
  2. [@tsconfig/node20/tsconfig.json](https://github.com/tsconfig/bases/blob/main/bases/node20.json)
  3. ```json
     {
       "verbatimModuleSyntax": false,
       "exactOptionalPropertyTypes": false
     }
     ```
- `@4s1/ts-config/tsconfig-node-wo-sourcemaps.json` same as above plus
  ```json
  {
    "declaration": false,
    "declarationMap": false,
    "sourceMap": false,
    "inlineSources": false
  }
  ```

## Using

Install this package to get the configurations.

```bash
# npm
npm install @4s1/ts-config --save-dev
# pnpm
pnpm add @4s1/ts-config --save-dev
```

Create a `tsconfig.json` file and insert the following configuration.
If you do not want sourcemaps you can extend from `tsconfig-node-wo-sourcemaps.json`.

```json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "@4s1/ts-config/tsconfig-node.json",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src/**/*.ts"],
  "exclude": ["src/**/*.spec.ts", "node_modules/"]
}
```

Create a `tsconfig-dev.json` file and insert the following configuration.
This extends your previously created `tsconfig.json` and turns off some strict checking at development time.

```json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "noUnusedLocals": false,
    "noUnusedParameters": false
  }
}
```

Finally build tasks for production and development have to be created.
Add the following scripts to your `package.json`.

```json
{
  "scripts": {
    "build": "rm -rf dist && tsc",
    "build:dev": "rm -rf dist && tsc --project tsconfig.dev.json"
  }
}
```

## How to update configs

```bash
# Create tsconfig files
./build.mjs
# Format tsconfig files
pnpm run format

# Compare changes
git diff

# Think about the changes

# Think about the changes again

# Commit what you want/need
```

---
_Source: https://npm.io/package/@4s1/ts-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
