1.0.3 • Published 2 years ago
@schatx/tsconfig v1.0.3
@schatx/tsconfig
TSConfig for schatx to extend.
Require Typescript >= 5.0. Node -> NodeNext. ECMAScript -> ESNext
Installation
npm install --save-dev @scharx/tsconfigUsage
Add one of avaiable conifgurations to your tsconfig.json:
The Base Configuration
"extends": "@schatx/tsconfig/tsconfig.json"Configuration for Browser Environment
"extends": "@schatx/tsconfig/tsconfig.dom.json"Configuration for Node Environments
First install the types for the Node.js version you are targeting, for example:
npm install @types/node --save-devand you need to extend the TSConfig:
"extends": "@schatx/tsconfig/tsconfig.node.json"Emitting Declaration Files
If you are building a library or a component library, you can enable declaration file emitting by also extending @schatx/tsconfig/tsconfig.lib.json in your tsconfig.json:
"extends": [
"@schatx/tsconfig/tsconfig.dom.json",
"@schatx/tsconfig/tsconfig.lib.json"
]