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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ecubelabs/tsconfig

v1.2.0

Published

``` npm i @ecubelabs/tsconfig ```

Readme

Install

npm i @ecubelabs/tsconfig

Usage

TypeScript 6.0 note — @types/* are no longer auto-included

Starting with TypeScript 6.0, the compiler no longer auto-includes every @types/* package found in node_modules/@types for the global scope. If your code relies on ambient globals (e.g. process/Buffer from @types/node, Jest/Vitest globals), you must now list them explicitly in your own tsconfig.json:

"types": ["node"]

This applies to every preset (legacy and modern) — the base configs intentionally do not set types, since the right value is per-consumer.

React (Modern Resolution, Bundler) tsconfig.json

TypeScript 6.0-clean React preset for bundler-driven apps (Webpack, etc.). Same intent as react.json, but modernized: target: ES2020 (up from es5), module: "esnext", and moduleResolution: "bundler" (honors exports/imports in dependencies). Keeps esModuleInterop, allowSyntheticDefaultImports, jsx, and experimentalDecorators. Requires typescript>=5.9; required under >=6.0 because react.json uses options (target: es5, moduleResolution: node10) that 6.0 rejects.

"extends": "@ecubelabs/tsconfig/react-modern.json"

Node Modern Resolution presets (CommonJS runtime)

These presets keep the CommonJS emit/runtime exactly as the legacy node* presets, but modernize only the module resolution (module: "node20", no moduleResolution → auto node16). This honors the exports/imports fields in dependencies' package.json, fixing resolution failures with modern packages — without any source/ESM migration. They keep experimentalDecorators + emitDecoratorMetadata (TypeORM) and skipLibCheck, and are TypeScript 6.0-clean (the legacy node* presets use moduleResolution: node10, which 6.0 rejects).

Do not add "type": "module" to your package.json; that keeps the emit as CommonJS.

Switching to modern resolution also implicitly enables esModuleInterop, allowSyntheticDefaultImports, and moduleDetection: "force". This is non-breaking (emit stays CJS) but changes resolution/interop behavior, so run tsc --noEmit once to verify after switching. Requires typescript>=5.9.

Node 22 (Modern) tsconfig.json

"extends": "@ecubelabs/tsconfig/node22-modern.json"

Node 20 (Modern) tsconfig.json

"extends": "@ecubelabs/tsconfig/node20-modern.json"

Node 22 tsconfig.json

Add to your tsconfig.json This tsconfig requires typescript>=5.7

"extends": "@ecubelabs/tsconfig/node22.json"

Node 20 tsconfig.json

Add to your tsconfig.json This tsconfig requires typescript>=5

"extends": "@ecubelabs/tsconfig/node20.json"

Node 18 tsconfig.json

Add to your tsconfig.json

"extends": "@ecubelabs/tsconfig/node18.json"

Node 16 tsconfig.json

Add to your tsconfig.json

"extends": "@ecubelabs/tsconfig/node16.json"

Node 14 tsconfig.json

Add to your tsconfig.json

"extends": "@ecubelabs/tsconfig/node14.json"

Node 12 tsconfig.json

Add to your tsconfig.json

"extends": "@ecubelabs/tsconfig/node12.json"

Node 10 tsconfig.json

Add to your tsconfig.json

"extends": "@ecubelabs/tsconfig/node10.json"