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

@flywen/tsconfig

v1.0.0

Published

Shared TypeScript configurations for multiple environments (Node.js, React, Vue, Web Library)

Readme

@flywen/ts-config

Shared TypeScript configurations for multiple environments.

Installation

npm install -D @flywen/ts-config
# or
yarn add -D @flywen/ts-config
# or
pnpm add -D @flywen/ts-config

Usage

Extend the configuration in your tsconfig.json:

Base Configuration (tsconfig.base.json)

{
  "extends": "@flywen/ts-config/tsconfig.base.json"
}

Node.js Application (tsconfig.node.json)

For Node.js applications (not libraries):

{
  "extends": "@flywen/ts-config/tsconfig.node.json"
}

Node.js Library (tsconfig.node-lib.json)

For Node.js libraries that need declaration files:

{
  "extends": "@flywen/ts-config/tsconfig.node-lib.json"
}

React (tsconfig.react.json)

For React applications with Vite/modern bundlers:

{
  "extends": "@flywen/ts-config/tsconfig.react.json"
}

Vue (tsconfig.vue.json)

For Vue 3 applications with Vite:

{
  "extends": "@flywen/ts-config/tsconfig.vue.json"
}

Web Library (tsconfig.web-lib.json)

For web libraries that need declaration files:

{
  "extends": "@flywen/ts-config/tsconfig.web-lib.json"
}

Configurations

tsconfig.base.json

Base configuration with shared settings:

  • All strict mode options enabled
  • esModuleInterop: true
  • skipLibCheck: true
  • forceConsistentCasingInFileNames: true
  • resolveJsonModule: true
  • declaration: true
  • declarationMap: true
  • sourceMap: true

tsconfig.node.json

Node.js 18+ application configuration:

  • target: "ES2022"
  • module: "NodeNext"
  • moduleResolution: "NodeNext"
  • lib: ["ES2022"]
  • outDir: "./dist"
  • rootDir: "./src"
  • types: ["node"]

tsconfig.node-lib.json

Node.js library configuration:

  • Inherits from base
  • target: "ES2022"
  • module: "NodeNext"
  • moduleResolution: "NodeNext"
  • declaration: true
  • declarationMap: true
  • types: ["node"]

tsconfig.react.json

React (Vite/modern bundler) configuration:

  • target: "ESNext"
  • module: "ESNext"
  • moduleResolution: "bundler"
  • jsx: "react-jsx"
  • jsxImportSource: "react"
  • lib: ["DOM", "DOM.Iterable", "ESNext"]
  • noEmit: true (Vite handles compilation)
  • Path aliases configured (@/*)

tsconfig.vue.json

Vue 3 (Vite) configuration:

  • target: "ESNext"
  • module: "ESNext"
  • moduleResolution: "bundler"
  • jsx: "preserve"
  • jsxImportSource: "vue"
  • lib: ["ESNext", "DOM", "DOM.Iterable"]
  • types: ["vite/client"]
  • noEmit: true (Vite handles compilation)
  • Path aliases configured (@/*)
  • Includes .vue files

tsconfig.web-lib.json

Web library configuration:

  • target: "ES2020"
  • module: "ESNext"
  • moduleResolution: "bundler"
  • lib: ["ESNext", "DOM", "DOM.Iterable"]
  • declaration: true
  • declarationMap: true
  • outDir: "./dist"
  • rootDir: "./src"

Notes

  • All configurations extend from tsconfig.base.json
  • React and Vue configs assume usage with Vite or similar modern bundlers
  • Node.js configs support both ESM (NodeNext) and CJS
  • Path aliases (@/*) are pre-configured for React, Vue, and web-lib configs

License

MIT