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

@freckle/tsconfig

v1.3.3

Published

Shared TypeScript compiler options for Freckle repositories

Readme

@freckle/tsconfig

Shared TypeScript compiler options for Freckle repositories. Three files: a base both archetypes agree on, and one small overlay each.

| File | Use in | Adds | | --- | --- | --- | | base.json | nothing directly | the 13 shared flags | | action.json | typescript-github-action repos | removeComments | | library.json | js-library repos | declaration |

Where the base came from

It is not a new opinion. It is the intersection of two clusters that converged on the same flags independently: all ten typescript-github-action repos are unanimous on these thirteen, and five js-library repos carry them byte-identically. Adopting the base changes nothing for either group.

Why removeComments is Action-only

It strips comments from .d.ts output, not just from .js. On a library that deletes every JSDoc block from the published types, so a consumer loses hover text, parameter hints and property documentation. Measured on a probe with declaration: true:

// without removeComments                  // with removeComments
/**                                        export declare function add(
 * Adds two numbers.                         a: number,
 * @param a the first number                 b: number
 * @returns the sum                        ): number;
 */                                        export type Point = {
export declare function add(                   x: number;
  a: number,                                   y: number;
  b: number                                };
): number;
export type Point = {
    /** horizontal offset */
    x: number;
};

Actions are unaffected: they do not set declaration, so there is no .d.ts, and the ncc bundle that ships is read by machines. The fleet already splits this way — removeComments is set in ten repos, all of them Actions and none of them libraries.

Do not hoist it into base.json.

Use

pnpm add -D @freckle/tsconfig
{
  "extends": "@freckle/tsconfig/action.json",
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./lib",
    "types": ["node", "vitest/globals"]
  },
  "include": ["./src/**/*"]
}

What stays in your repo, and why it has to

Compiler flags only live here. extends resolves a relative path against the file that declares it, so a path written in this package would resolve inside node_modules/@freckle/tsconfig/, not in your repo. These keys must stay local:

  • rootDir, outDir, declarationDir, tsBuildInfoFile
  • include, exclude, files
  • baseUrl, paths, typeRoots

types is a list of package names rather than paths, so it would technically inherit — it stays local anyway because it says what a repo's tests and runtime pull in (node, vitest/globals, jquery), which is not a shared decision.

Overriding a flag

Set it in your own compilerOptions; the local value wins. Record why in the file, the way parser-js does for needing DOM in lib:

{
  "extends": "@freckle/tsconfig/library.json",
  "compilerOptions": {
    // Consumed in browser contexts, so DOM types are needed. Additive, not a
    // weakening of the shared set.
    "lib": ["ES2023", "DOM"]
  }
}

Note lib and types replace rather than merge, so an override has to restate the shared value alongside the addition.

Changing the base

Edit base.json here. Every consumer picks it up on its next dependency bump. A change to the base changes what the fleet type-checks, so it is a real decision rather than a formatting fix — say what breaks and what it catches.