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

@cffnpwr/tsconfig

v1.0.0

Published

Shared TypeScript base configurations for cffnpwr

Downloads

1,115

Readme

@cffnpwr/tsconfig

GitHub License npm Version JSR Version

Shared TypeScript base configurations for cffnpwr.

日本語のREADMEはこちら

Configurations

| File | Extends | Adds | Use for | | ----------- | ----------- | ------------------- | ------------------------------------ | | base.json | – | strict + module set | Runtime-agnostic base to extend from | | bun.json | base.json | types: ["bun"] | Bun projects | | node.json | base.json | types: ["node"] | Node.js projects |

base.json deliberately does not set types, include, or exclude. The environment variants only add the ambient types; everything else is inherited.

How to Install

npm

npm install -D @cffnpwr/tsconfig

or

npx jsr add -D @cffnpwr/tsconfig

pnpm

pnpm add -D @cffnpwr/tsconfig

or

pnpm dlx jsr add -D @cffnpwr/tsconfig

Bun

bun add -D @cffnpwr/tsconfig

or

bunx jsr add -D @cffnpwr/tsconfig

Deno

deno add -D npm:@cffnpwr/tsconfig

or

deno add -D jsr:@cffnpwr/tsconfig

How to Use

Create a tsconfig.json and extend the variant that matches your runtime. include/exclude are not provided, so set them per project.

Bun:

{
  "extends": "@cffnpwr/tsconfig/bun",
  "include": ["src", "*.config.ts"]
}

Node.js:

{
  "extends": "@cffnpwr/tsconfig/node",
  "include": ["src"]
}

For any other runtime, extend base and set types yourself:

{
  "extends": "@cffnpwr/tsconfig/base",
  "compilerOptions": {
    "types": ["@cloudflare/workers-types"]
  },
  "include": ["src"]
}

What base.json sets and why

Module system

| Option | Value | Why | | --------------------------- | ----------- | ----------------------------------------------------------------------------------------------- | | target / lib | ESNext | Latest syntax and library types; downleveling is the bundler's job. | | module | Preserve | Keeps import/require as written and implies moduleResolution: bundler. | | moduleResolution | bundler | Resolution model matching Bun/Vite/tsdown. Set explicitly even though Preserve implies it. | | moduleDetection | force | Treats every non-.d.ts file as a module, avoiding accidental global-script scope. | | esModuleInterop | true | Interop for CJS default imports (type-checking behavior under Preserve). | | verbatimModuleSyntax | true | Forces explicit import type; no implicit import elision. | | isolatedModules | true | Guarantees each file transpiles safely on its own (single-file transpilers, ts.transpileModule). | | allowImportingTsExtensions| true | Allows importing .ts paths. Requires noEmit (or emitDeclarationOnly), satisfied below. | | resolveJsonModule | true | Allows importing .json. |

Emit

| Option | Value | Why | | ------------------------- | ------ | --------------------------------------------------------------------------------------------------------- | | noEmit | true | tsc is used for type-checking only; the build is done by a bundler (Bun / tsdown / Vite). | | declaration / declarationMap | true | Only take effect when a consumer sets noEmit: false to emit .d.ts via tsc. Under the default noEmit: true they emit nothing. Kept so that turning emit on yields declarations without extra config. |

Strictness

| Option | Value | Why | | ---------------------------- | ------ | ---------------------------------------------------------------- | | strict | true | Full strict family. | | noUncheckedIndexedAccess | true | Adds undefined to index-signature access results. | | noImplicitOverride | true | Requires override on overriding members. | | noImplicitReturns | true | Flags code paths that don't return a value. | | noFallthroughCasesInSwitch | true | Flags non-empty switch cases that fall through. | | skipLibCheck | true | Skips type-checking of .d.ts files for faster builds. |

Intentionally left to the linter

noUnusedLocals, noUnusedParameters, and noPropertyAccessFromIndexSignature are not set here. Unused-symbol and index-access reporting is handled by @cffnpwr/eslint-config, so the type-checker does not duplicate it.

License

MIT License