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

@kcconfigs/tsconfig

v0.1.0

Published

Shared tsconfig.json

Readme

@kcconfigs/tsconfig

Shared TypeScript configuration presets for the kc-workspace monorepo. Provides multiple tsconfig.json templates for different project types and use cases.

Prerequisites

  • TypeScript: 5.5.0 or higher (as peer dependency)

Installation

pnpm add --save-dev typescript @kcconfigs/tsconfig

Recommended settings

Usage

This package provides multiple tsconfig presets, environments, and features:

Presets

| Name | Description | | ------------------------------ | ------------------------------------------ | | @kcconfigs/tsconfig/base | Base configuration for general typescript | | @kcconfigs/tsconfig | Default configuration | | @kcconfigs/tsconfig/commonjs | Default but for CommonJS (not recommended) | | @kcconfigs/tsconfig/root | Use monorepo root | | @kcconfigs/tsconfig/bundler | Use for with bundler (vite, tsdown, etc.) | | @kcconfigs/tsconfig/dts | Use for generate declaration and maps | | @kcconfigs/tsconfig/zshy | Use with zshy |

Example use presets

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

Environments

| Name | Description | | ------------------------------- | ----------------------- | | @kcconfigs/tsconfig/envs/node | For node environment | | @kcconfigs/tsconfig/envs/web | For browser environment |

{
  "extends": [
    "@kcconfigs/tsconfig",
    "@kcconfigs/tsconfig/envs/node"
  ]
}

Features

| Name | Description | | ---------------------------------------------- | --------------------------------------------------- | | @kcconfigs/tsconfig/features/bundler | Set for bundler mode | | @kcconfigs/tsconfig/features/declaration | Add declaration files | | @kcconfigs/tsconfig/features/declarationOnly | Only emit declaration files | | @kcconfigs/tsconfig/features/diagnostics | Add diagnostics output for debugging | | @kcconfigs/tsconfig/features/nodeRuntime | Set typescript to support directly run from Node.js | | @kcconfigs/tsconfig/features/noIncremental | Disable incremental from base config | | @kcconfigs/tsconfig/features/noSourcemap | Disable source map and declaration maps output | | @kcconfigs/tsconfig/features/noStrict | Disable strict mode when type checks | | @kcconfigs/tsconfig/features/tslib | Enable using helpers from tslib | | @kcconfigs/tsconfig/features/types | Support custom @kctypes/* packages as types | | @kcconfigs/tsconfig/features/js | Allow JavaScript files to be imported | | @kcconfigs/tsconfig/features/es5 | Set target to ES5 (2009) for backward compatible | | @kcconfigs/tsconfig/features/es6 | Set target to ES6 (ES2015) for backward compatible | | @kcconfigs/tsconfig/features/empty | Starting point for new features |

Example use features

{
  "extends": [
    "@kcconfigs/tsconfig",
    "@kcconfigs/tsconfig/envs/node",
    "@kcconfigs/tsconfig/features/noSourcemap"
  ]
}

Custom settings

To extend configurations with custom settings:

{
  "extends": ["@kcconfigs/tsconfig", "@kcconfigs/tsconfig/envs/node"],
  "include": ["src/**/*"],
  "exclude": ["node_modules", "dist", "**/*.test.ts"],
  "compilerOptions": {
    "declaration": true
  }
}

Compiler Options

All configurations inherit base settings:

  • Target: ESNext
  • Module: ESNext
  • Strict Mode: Enabled
  • Source Maps: Enabled
  • Check Js: Enabled

Example

Below are the example configuration per tools or frameworks.

TSDown

{
  "extends": "@kcconfigs/tsconfig/bundler"
}

References