8.0.1 • Published 6 days ago

@supercharge/tsconfig v8.0.1

Weekly downloads
84
License
MIT
Repository
github
Last release
6 days ago

Installation

npm i -D @supercharge/tsconfig

Targets

Major ReleaseNode.js versionModule System
8.x22.xESM
7.x20.xESM
6.x20.xCommonJS
5.x18.xCommonJS
4.x16.xCommonJS
3.x14.xCommonJS
2.x12.xCommonJS
1.x8.xCommonJS

Usage

Create a tsconfig.json file in your project and extends the @supercharge/tsconfig TypeScript config:

Basic Usage

When installed, configure your tsconfig.json like this:

{
  "extends": "@supercharge/tsconfig",
  "compilerOptions": {
    "outDir": "dist"
  }
}

Refined Configuration

You can refine your tsconfig.json to your needs. Let’s say you want to target Node.js v16. Change your compilerOptions to this:

{
  "extends": "@supercharge/tsconfig",
  "display": "Node.js v16",

  "compilerOptions": {
    "outDir": "dist",
    "target": "ES2021",
    "lib": ["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.

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
  5. Submit a pull request 🚀

License

MIT © Supercharge


superchargejs.com  ·  GitHub @supercharge  ·  Twitter @superchargejs

8.0.1

6 days ago

8.0.0

6 days ago

5.0.0

9 months ago

7.0.0

7 months ago

6.0.0

7 months ago

4.0.0

2 years ago

3.1.0

3 years ago

2.1.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.0.0

4 years ago