tsconfig
/
4.0.0
tsconfig 4.0.0
Install from the command line:
Learn more about npm packages
$ npm install @supercharge/tsconfig@4.0.0
Install via package.json:
"@supercharge/tsconfig": "4.0.0"
About this version
Shared TypeScript config for Supercharge projects
Follow @marcuspoehls and @superchargejs for updates!
npm i -D @supercharge/tsconfig
Major Release | Node.js version |
---|---|
4.x |
16.x |
3.x |
14.x |
2.x |
12.x |
1.x |
8.x |
Create a tsconfig.json
file in your project and extends the @supercharge/tsconfig
TypeScript config:
When installed, configure your tsconfig.json
like this:
{
"extends": "@supercharge/tsconfig",
"compilerOptions": {
"outDir": "dist"
}
}
You can refine your tsconfig.json
to your needs. Let’s say you want to target Node.js v14 instead of v12 (which is the default). Change your compilerOptions
to this:
{
"extends": "@supercharge/tsconfig",
"display": "Node 16",
"compilerOptions": {
"outDir": "dist",
"lib": ["es2021"],
"target": "es2021",
}
}
Customizing your compilerOptions
when extending the @supercharge/tsconfig
package only overrides the listed properties. Every other option defined in the base configuration will be inherited.
- Create a fork
- Create your feature branch:
git checkout -b my-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request 🚀
MIT © Supercharge
superchargejs.com · GitHub @supercharge · Twitter @superchargejs