# tsconfig
**Repository Path**: ttionya/tsconfig
## Basic Information
- **Project Name**: tsconfig
- **Description**: Shared TypeScript config for my projects.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2023-02-06
- **Last Updated**: 2025-12-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: TypeScript, tsconfig
## README
# @ttionya/tsconfig
[](https://www.npmjs.com/package/@ttionya/tsconfig) [](https://www.npmjs.com/package/@ttionya/tsconfig) [](https://github.com/ttionya/tsconfig/blob/master/LICENSE)
> Shared TypeScript config for my projects.
Configure grouping by category, see full configuration options [here](https://www.typescriptlang.org/tsconfig).
## Required
- NodeJS `>=20.19.0`
- TypeScript `^5.9.0`
**IMPORTANT:** This branch supports Node 20 LTS or higher and TypeScript 5.9. For Node 18 LTS and TypeScript 5, switch to the [`v2`](https://github.com/ttionya/tsconfig/tree/v2) branch; for Node 14 LTS and TypeScript 4.7, choose the [`v1`](https://github.com/ttionya/tsconfig/tree/v1) branch.
## Install
```bash
# NPM
npm i -D @ttionya/tsconfig
# PNPM
pnpm add -D @ttionya/tsconfig
```
## Usage
### Node (ESM)
Enabling ECMAScript Modules (ESM) by setting `"type": "module"` in `package.json`.
```json
{
"extends": "@ttionya/tsconfig/tsconfig.esm.json",
"compilerOptions": {
"outDir": "./esm"
}
}
```
### Node (CommonJS)
Using CommonJS and automatically detecting the appropriate algorithm to resolve modules. Supporting the `exports` field in the `package.json` file.
```json
{
"extends": "@ttionya/tsconfig/tsconfig.commonjs.json",
"compilerOptions": {
"outDir": "./lib"
}
}
```
### Node (Classic CommonJS)
Using CommonJS but not supporting the `exports` field in the `package.json` file.
```json
{
"extends": "@ttionya/tsconfig/tsconfig.classic.json",
"compilerOptions": {
"outDir": "./lib"
}
}
```
## License
MIT