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

@osdlc/tsconfig

v0.3.3

Published

Strict TypeScript compiler presets: a shared bar plus node, bun, vue and build shapes. Consumed through `extends`; ships no code.

Readme

@osdlc/tsconfig

Strict TypeScript compiler presets: one shared bar, plus the package shapes that recur on top of it. Consumed through extends; ships no code.

npm install --save-dev @osdlc/tsconfig typescript

Requires TypeScript 5.7 or later (build uses rewriteRelativeImportExtensions and the ${configDir} template).

Presets

| Preset | What it is | |---|---| | base | The shared bar, carrying nothing specific to how a package ships. | | source-shipped | base + allowImportingTsExtensions and noEmit, for a package consumed as TypeScript source rather than as built dist/. | | node-lib | source-shipped + the ES2022 runtime and node globals. | | bun-lib | node-lib + bun's globals, for a package whose tests or runtime are Bun. | | vue | source-shipped + the modern browser, the DOM, jsx: preserve, and no ambient types. | | build | The emit block, as a mixin. Not a standalone config — see below. |

Use

base and source-shipped differ by two options, and TypeScript couples them: allowImportingTsExtensions is rejected unless noEmit, emitDeclarationOnly or rewriteRelativeImportExtensions is set (TS5096). A package consumed as TypeScript source, importing ./x.ts, wants source-shipped (directly or through node-lib, bun-lib or vue). A package that builds with tsc and imports ./x.js wants base.

// tsconfig.json — the family preset, then your own per-package facts
{
  "extends": "@osdlc/tsconfig/node-lib",
  "include": ["index.ts", "sync.ts"]
}

lib, types, jsx and include are genuine per-package facts, so a package still states the ones where it really differs from its preset. What it should not restate is anything the preset already says.

The emit mixin goes last in an array, on top of the package's own config:

// tsconfig.build.json
{
  "extends": ["./tsconfig.json", "@osdlc/tsconfig/build"],
  "compilerOptions": { "rootDir": "." }
}

TypeScript applies array entries left to right, and the extending file's own compilerOptions last — so build's noEmit: false lands on top of the dev config's noEmit: true, while rootDir and include stay where they belong. build deliberately declares no extends and no include; presets/build.json explains why each of those would break silently.

Adding a preset

Add the file under presets/, and add both its exports keys (the extensionless and .json spellings) to package.json. Then add it to tests/resolve.json. Skipping the exports entry still resolves from inside this package and breaks every consumer; npm run typecheck (tsc over tests/resolve.json) is what catches that.

Not for framework-generated configs

A config that extends ./.nuxt/tsconfig.json or astro/tsconfigs/* must stay that way. Layering this bar on top would clobber the paths, types, moduleResolution and jsx the generator computed.

Source and releases

Developed and released in osdlc/osdlc, under packages/tsconfig. Report issues at osdlc/osdlc/issues.

License

MIT