https://github.com/cyansalt/tsconfig
My TypeScript configuration.
https://github.com/cyansalt/tsconfig
tsconfig typescript
Last synced: about 2 months ago
JSON representation
My TypeScript configuration.
- Host: GitHub
- URL: https://github.com/cyansalt/tsconfig
- Owner: CyanSalt
- License: isc
- Created: 2021-02-20T10:52:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T13:01:04.000Z (over 2 years ago)
- Last Synced: 2025-02-03T04:47:51.867Z (over 1 year ago)
- Topics: tsconfig, typescript
- Homepage:
- Size: 979 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @cyansalt/tsconfig
[](https://www.npmjs.com/package/@cyansalt/tsconfig)
My TypeScript configuration.
## Installation
```shell
npm install --save-dev @cyansalt/tsconfig
```
## Usage
```json5
// tsconfig.json
{
"extends": "@cyansalt/tsconfig/tsconfig.app"
// OR in short (not recommended)
// "extends": "@cyansalt/tsconfig"
}
```
For base libraries (which will be used as dependencies):
```json5
// tsconfig.json
{
"extends": "@cyansalt/tsconfig/tsconfig.lib"
}
```
By default, tsc will not output any files when using the above configuration. The following configuration may be additionally required:
```json5
// tsconfig.json
{
"compilerOptions": {
// To emit .js files when compiling
"noEmit": false,
// To emit .d.ts files when compiling
"declaration": true
}
}
```
In addition, you will also need to specify the files to be included (`include`) or excluded (`exclude`) yourself.
For more information, see [TSConfig](https://www.typescriptlang.org/tsconfig/).