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

@dnd-mapp/config-typescript

v1.1.0

Published

Shared, reusable TypeScript configs (tsconfig bases).

Readme

@dnd-mapp/config-typescript

npm version license

Shared, reusable TypeScript configs (tsconfig bases).

Requirements

  • TypeScript 6 is a peer dependency and must be installed in your project.

Installation

pnpm add --save-dev typescript @dnd-mapp/config-typescript

Usage

Extend a config from your tsconfig.json. For a Node.js 24 project, extend node.

{
    "extends": "@dnd-mapp/config-typescript/node",
    "include": ["src"]
}

For any other environment, extend base and add the options that depend on it, such as target, module, and lib.

{
    "extends": "@dnd-mapp/config-typescript/base",
    "include": ["src"],
    "compilerOptions": {
        "target": "es2025",
        "module": "preserve"
    }
}

Available configs

| Config | Extends path | Description | |:-------|:-----------------------------------|:---------------------------------------------------------| | base | @dnd-mapp/config-typescript/base | Strict, environment-independent defaults for any project | | node | @dnd-mapp/config-typescript/node | base plus the environment options for Node.js 24 |

Each config is also available with the .json extension, for example @dnd-mapp/config-typescript/base.json.

What base configures

The base config is meant to work in any kind of project, so it leaves out anything that depends on the runtime or the build setup.

  • Strictness: Enables strict plus extra checks such as exactOptionalPropertyTypes, noUncheckedIndexedAccess, noImplicitOverride, noImplicitReturns, and noPropertyAccessFromIndexSignature.
  • Cleanliness: Turns unused locals, unused parameters, unreachable code, unused labels, and switch fallthrough into errors.
  • Module safety: Enables isolatedModules and moduleDetection: "force" so every file works with single-file transpilers and is treated as a module. Also enables esModuleInterop.
  • Output and diagnostics: Uses LF line endings, disables error truncation, and skips type checking of declaration files with skipLibCheck.

It does not set target, module, moduleResolution, lib, types, jsx, or any emit and path options. It also relies on the TypeScript 6 defaults for noUncheckedSideEffectImports.

What node configures

The node config extends base and adds the options for code that runs on Node.js 24.

| Option | Value | Effect | |:---------|:-------------|:---------------------------------------------------------------------------| | target | es2024 | Emits syntax that Node.js 24 runs natively | | lib | ["ES2025"] | Types the built-in APIs up to ES2025, without DOM types | | module | nodenext | Follows the Node.js rules for ES modules and CommonJS, including exports | | types | ["node"] | Loads only the Node.js types, so install @types/node in your project |

It does not set any emit or path options, so set noEmit or outDir in your own config.

Changelog

Notable changes for consumers of this package are listed in the changelog.

Contributing

Contributions are welcome. See the contributing guide for details.

License

MIT © D&D Mapp