JSPM

fastify-tsconfig

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

Shared TypeScript configuration

Package Exports

  • fastify-tsconfig

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 (fastify-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 configuration for fastify projects

Install

$ npm install --save-dev fastify-tsconfig

Usage

Extend your own tsconfig.json file from fastify-tsconfig and override/add the desired settings. By default no outDir is set (because of this issue) , so be sure to add one.

tsconfig.json

{
  "extends": "fastify-tsconfig",
  "compilerOptions": {
    "outDir": "build",
    "target": "es2018",
    "lib": ["es2018"]
  }
}

Check the other settings here

Configuration target

The configuration targets es2018, that is supported in Node.js 10 and later. There is only one feature that is is missing from Node.js v10: Proxy "ownKeys" . However using es2018 as target makes some widely used features ("object rest properties", "object spread properties", and "Asynchronous Iterators") not being transpiled. To target some other version, just override target property.

License

Licensed under MIT.


Inspired by: sindresorhus/tsconfig