TSConfig for schatx to extend.
Require Typescript >= 5.0
. Node -> NodeNext
. ECMAScript -> ESNext
npm install --save-dev @scharx/tsconfig
Add one of avaiable conifgurations to your tsconfig.json
:
"extends": "@schatx/tsconfig/tsconfig.json"
"extends": "@schatx/tsconfig/tsconfig.dom.json"
First install the types for the Node.js version you are targeting, for example:
npm install @types/node --save-dev
and you need to extend the TSConfig:
"extends": "@schatx/tsconfig/tsconfig.node.json"
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"
]