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

@rootreeweb/tsconfigs

v3.3.11

Published

Standardized tsconfig.json files.

Readme

@rootreeweb/tsconfigs

Standardized TypeScript configuration files for various project types across the Rootree Web ecosystem.

Getting Started

1. Authentication

Ensure you have authenticated with our private GitHub npm registry. Follow the instructions in the Rootree Web Wiki.

2. Installation

Add the package to your project as a development dependency:

yarn add -D @rootreeweb/tsconfigs

3. Usage

Extend the appropriate configuration in your tsconfig.json file.

{
	"extends": "@rootreeweb/tsconfigs/base.json",
	"compilerOptions": {
		"outDir": "./dist",
		"rootDir": "./src"
	},
	"include": ["src"]
}

Available Configurations

| Configuration | Use Case | | :---------------------------------------- | :-------------------------------------------------------------------- | | @rootreeweb/tsconfigs/base.json | Default configuration for modern Node.js projects (ESM). | | @rootreeweb/tsconfigs/react.json | Optimized for React projects. | | @rootreeweb/tsconfigs/next.json | Tailored for Next.js applications. | | @rootreeweb/tsconfigs/next-package.json | For packages intended for use within Next.js apps. | | @rootreeweb/tsconfigs/tsc.json | Minimal configuration for projects using tsc directly for building. | | @rootreeweb/tsconfigs/typecheck.json | Comprehensive configuration for project-wide type checking. | | @rootreeweb/tsconfigs/webpack.json | Optimized for projects bundled with Webpack. |

Usage Examples

Modern Node.js (ESM)

For a standard Node.js library using ESM:

{
	"extends": "@rootreeweb/tsconfigs/base.json",
	"compilerOptions": {
		"outDir": "./dist",
		"rootDir": "./src"
	},
	"include": ["src"]
}

Next.js Application

In a Next.js project's root tsconfig.json:

{
	"extends": "@rootreeweb/tsconfigs/next.json",
	"compilerOptions": {
		"plugins": [{ "name": "next" }],
		"paths": {
			"@/*": ["./src/*"]
		}
	},
	"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
	"exclude": ["node_modules"]
}

React Library

For a shared React component library:

{
	"extends": "@rootreeweb/tsconfigs/react.json",
	"compilerOptions": {
		"outDir": "../dist/esm"
	},
	"include": ["../src"]
}

Advanced Patterns

Project-wide Type Checking vs. Specialized Builds

Modern TypeScript projects benefit from separating the concerns of type checking (all files) and transpilation (only buildable source).

1. Root tsconfig.json (Type Checking)

The root configuration should be used by your IDE and CI for comprehensive type checking of the entire project, including tests, configurations, and internal tools.

{
	"extends": "@rootreeweb/tsconfigs/typecheck.json"
}

2. Specialized Build Configurations

Place build-specific configurations in a configs/ directory. These should only include the files intended for distribution.

Example: configs/tsconfig.build.json

{
	"extends": "@rootreeweb/tsconfigs/tsc.json",
	"compilerOptions": {
		"outDir": "../dist"
	},
	"include": ["../src"]
}

Benefits of this Pattern

  • Cleaner dist: No test files or documentation files end up in your production build.
  • Faster IDE Feedback: The root config provides immediate type checking for all files, while build configs stay focused.
  • Comprehensive Testing: Ensures that your test code and configuration files are also type-safe.