JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 92055
  • Score
    100M100P100Q171261F
  • License MIT

Shared TypeScript config for my projects

Package Exports

  • @sindresorhus/tsconfig
  • @sindresorhus/tsconfig/tsconfig.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sindresorhus/tsconfig) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tsconfig

Shared TypeScript config for my projects

Install

npm install --save-dev @sindresorhus/tsconfig

This config requires TypeScript 4.7 or later.

Usage

tsconfig.json

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

When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as target:

{
    "extends": "@sindresorhus/tsconfig",
    "compilerOptions": {
        "outDir": "dist",
        "target": "ES2021"
    }
}