Socket
Socket
Sign inDemoInstall

fastify-tsconfig

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-tsconfig

Shared TypeScript configuration


Version published
Maintainers
3
Created
Source

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

Keywords

FAQs

Package last updated on 11 Nov 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc