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

@lazyconfig/tsconfig

v0.1.0

Published

Reusable TypeScript configuration presets to standardize compiler settings.

Readme

@lazyconfig/tsconfig

npm Downloads TypeScript License Sponsor

Reusable TypeScript configuration presets to standardize compiler settings across projects.


Installation

# pnpm
pnpm add -D @lazyconfig/tsconfig typescript

# npm
npm install --save-dev @lazyconfig/tsconfig typescript

# yarn
yarn add --dev @lazyconfig/tsconfig typescript

# bun
bun add --dev @lazyconfig/tsconfig typescript

Requirements

| Preset | TypeScript | Node.js | | ------- | ---------- | ------- | | base | >=5.0 | any | | node | >=5.0 | >=18 | | lib | >=5.0 | any | | react | >=5.0 | any |

  • TypeScript >=5.0 is required by all presets — verbatimModuleSyntax (base) and moduleResolution: "Bundler" (lib, react) were introduced in TS 5.0.
  • Node.js >=18 is required by the node preset — target: "ES2022" with NodeNext resolution targets the Node.js 18+ runtime.

Presets

base (default)

Foundation shared by all other presets. Enables strict type checking and common safety flags.

{
	"extends": "@lazyconfig/tsconfig/base"
}

or explicitly:

{
	"extends": "@lazyconfig/tsconfig/base.json"
}

| Option | Value | | ---------------------------------- | ------ | | strict | true | | skipLibCheck | true | | forceConsistentCasingInFileNames | true | | esModuleInterop | true | | verbatimModuleSyntax | true |

verbatimModuleSyntax enforces that type-only imports use import type, ensuring safe erasure by single-file transpilers such as Vite, esbuild, and SWC.


node

For Node.js applications and CLI tools. Uses NodeNext module resolution with source maps and declaration output enabled.

{
	"extends": "@lazyconfig/tsconfig/node",
	"compilerOptions": {
		"outDir": "dist",
		"rootDir": "src"
	},
	"include": ["src"]
}

| Option | Value | | ------------------ | ------------ | | target | ES2022 | | lib | ["ES2022"] | | module | NodeNext | | moduleResolution | NodeNext | | declaration | true | | declarationMap | true | | sourceMap | true | | noEmitOnError | true |

NodeNext module resolution requires file extensions in relative imports (e.g. import { foo } from './foo.js').


lib

For framework-agnostic libraries consumed by bundlers. Emits only declaration files — the bundler handles the JavaScript output.

{
	"extends": "@lazyconfig/tsconfig/lib",
	"compilerOptions": {
		"outDir": "dist",
		"rootDir": "src"
	},
	"include": ["src"]
}

| Option | Value | | --------------------- | ------------ | | target | ES2022 | | lib | ["ES2022"] | | module | ESNext | | moduleResolution | Bundler | | declaration | true | | declarationMap | true | | emitDeclarationOnly | true | | noEmitOnError | true |


react

For React applications. Adds DOM types and enables the automatic JSX transform. Delegates all emit to the bundler.

{
	"extends": "@lazyconfig/tsconfig/react",
	"compilerOptions": {
		"baseUrl": ".",
		"paths": {
			"@/*": ["src/*"]
		}
	},
	"include": ["src"]
}

| Option | Value | | ------------------ | ----------------------------------- | | target | ES2022 | | lib | ["DOM", "DOM.Iterable", "ES2022"] | | module | ESNext | | moduleResolution | Bundler | | jsx | react-jsx | | noEmit | true |

DOM.Iterable is included so for...of over DOM collections (NodeList, HTMLCollection, etc.) type-checks correctly.

Path aliases (e.g. @/) require baseUrl and paths in your project's own tsconfig.json. The bundler also needs its own alias configuration (e.g. resolve.alias in Vite).


env.d.ts — build-time constants

Provides ambient type declarations for constants injected by bundlers at build time.

{
	"compilerOptions": {
		"types": ["@lazyconfig/tsconfig/env"]
	}
}

| Constant | Type | Description | | ---------- | --------- | --------------------------------------------------- | | __DEV__ | boolean | true in development builds, false in production | | __PROD__ | boolean | true in production builds, false in development |


License

MIT