🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@supercharge/tsconfig

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supercharge/tsconfig

Shareable TypeScript config

latest
Source
npmnpm
Version
8.0.1
Version published
Maintainers
3
Created
Source


Supercharge shareable TypeScript Config

Shared TypeScript config for Supercharge projects


Installation · Usage



Latest Version Monthly downloads

Follow @marcuspoehls and @superchargejs for updates!

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

  • 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 🚀

License

MIT © Supercharge

superchargejs.com  ·  GitHub @supercharge  ·  Twitter @superchargejs

Keywords

tsconfig

FAQs

Package last updated on 04 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts