Shareable TypeScript config
Shared TypeScript config for Httpie projects
Follow @eldorplus and @httpiejs for updates!
---
```
npm i -D @httpie/tsconfig
| Major Release | Node.js version |
| ------------- | --------------- |
| 3.x | 14.x |2.x
| | 12.x |1.x
| | 8.x |
file in your project and extends the @httpie/tsconfig TypeScript config:$3
When installed, configure your tsconfig.json like this:`json
{
"extends": "@httpie/tsconfig",
"compilerOptions": {
"outDir": "dist"
}
}
`
$3
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:`json
{
"extends": "@httpie/tsconfig",
"display": "Node 14", "compilerOptions": {
"outDir": "dist",
"lib": ["es2020"],
"target": "es2020",
}
}
`Customizing your
compilerOptions when extending the @httpie/tsconfig package only overrides the listed properties. Every other option defined in the base configuration will be inherited.
Contributing
1. Create a fork
2. Create your feature branch:
git checkout -b my-feature
3. Commit your changes: git commit -am 'Add some feature'
4. Push to the branch: git push origin my-new-feature`---
> httpiejs.com ·
> GitLab @httpie ·
> Twitter @httpiejs