npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@futagoza/tsconfig

v3.0.0

Published

A collection of configs I use with TypeScript

Downloads

7

Readme

This package contains configuration files for TypeScript v4.3+ Require's tslib as a dependency for outputted code.

A collection of configuration files I use with tsconfig.json while working with TypeScript.

installation

$ npm i --save-dev @futagoza/tsconfig
$ npm i tslib

usage

Put the following into your tsconfig.json (hint: you can rename this file when using tsc -p "custom name"):

{
    "extends": "@futagoza/tsconfig"
}

configurations

@futagoza/tsconfig (or @futagoza/tsconfig/tsconfig.json)

  • Target ES2015
  • Use CommonJS module generator
  • Strict type checking
  • Resolve JSON files
  • Enables source maps (with the original source included in the source maps)
  • Declaration files
  • Always use Unix style (lf) new lines
  • Do not emit on errors
  • Always import helpers from tslib to avoid duplication of TypeScript helpers
  • Exclude's a number of directories that shouldn't contain *.ts source files
  • Includes commonly used directories for *.ts source files
  • Disable's automatic type acquisition
  • Allows importing *.js exports into *.ts files
  • Enforces consistent casing in filenames (when importing)
  • Does not emit declarations for code that has an @internal annotation
  • Enable and disable options for my most common use cases

@futagoza/tsconfig/browser.json (or @futagoza/tsconfig/browser/legacy.json)

  • Extends @futagoza/tsconfig
  • Target ES5
  • Generate UMD modules

@futagoza/tsconfig/browser/evergreen.json

  • Extends @futagoza/tsconfig
  • Target ES2020
  • Generate ES2020 modules (ES2015 modules + dynamic imports + import.meta support)

@futagoza/tsconfig/browser/modern.json

  • Extends @futagoza/tsconfig
  • Target ES2018
  • Generate ES2015 modules

@futagoza/tsconfig/webworker.json

  • Extends @futagoza/tsconfig
  • Target ES2015
  • Use no module generator

@futagoza/tsconfig/node/core.json

  • Extends @futagoza/tsconfig
  • Enables the skipLibCheck option
  • The @types/node type package is included without being referenced

@futagoza/tsconfig/node.json (or @futagoza/tsconfig/node/lts.json)

  • Extends @futagoza/tsconfig/node/core.json
  • Target ES2019 (used in Node.js 12)

@futagoza/tsconfig/node/lts.modules.json

  • Extends @futagoza/tsconfig/node/lts.json
  • Generate ES2015 modules

@futagoza/tsconfig/node/current.json

  • Extends @futagoza/tsconfig/node/core.json
  • Target ES2020 (used in Node.js 16)

@futagoza/tsconfig/node/current.modules.json

  • Extends @futagoza/tsconfig/node/current.json
  • Generate ES2020 modules (ES2015 modules + dynamic imports + import.meta support)

@futagoza/tsconfig/desktop.json

  • Meant for use with NW.js or Electron
  • Extends @futagoza/tsconfig/browser/evergreen.json
  • The @types/node type package is included without being referenced

@futagoza/tsconfig/dev.json

  • Extends @futagoza/tsconfig
  • Target ESNext (with library support for browsers, node and web-workers)
  • Use ES module generator

license

Copyright © 2019+ Futago-za Ryuu Released under the MIT License, http://opensource.org/licenses/MIT