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

@pyreon/typescript

v0.47.0

Published

TypeScript configuration presets for Pyreon projects

Readme

@pyreon/typescript

TypeScript config presets for Pyreon projects — base, app, lib.

@pyreon/typescript ships three tsconfig.json presets you extend from your own config. The base preset configures the JSX import source (@pyreon/core), ES2024 target, bundler module resolution, strict mode (including exactOptionalPropertyTypes + noUncheckedIndexedAccess), and source maps. The app preset adds noEmit (type-check only — bundler handles emit). The lib preset adds declaration + declarationMap for publishable packages. No compilerOptions ceremony at the consumer side.

Install

bun add -D @pyreon/typescript

Usage

Applications

For Pyreon apps (SPAs, SSR apps, example apps):

// tsconfig.json
{
  "extends": "@pyreon/typescript/app",
  "include": ["src/**/*"]
}

Libraries

For publishable packages that need .d.ts output:

{
  "extends": "@pyreon/typescript/lib",
  "include": ["src/**/*"],
  "compilerOptions": {
    "outDir": "./lib"
  }
}

Base only

If you need finer control, extend base and add your own flags:

{
  "extends": "@pyreon/typescript",
  "compilerOptions": {
    "noEmit": true,
    "rootDir": "./src"
  }
}

What's included

All presets configure:

  • JSX"jsx": "react-jsx" with "jsxImportSource": "@pyreon/core" so <div /> resolves to Pyreon's JSX runtime out of the box.
  • Modern targettarget: "ES2024", module: "Preserve", lib: ["ES2024", "DOM", "DOM.Iterable"].
  • Bundler resolutionmoduleResolution: "Bundler", verbatimModuleSyntax: true, resolveJsonModule: true, moduleDetection: "force".
  • Strict modestrict, exactOptionalPropertyTypes, noUncheckedIndexedAccess, noImplicitOverride, forceConsistentCasingInFileNames.
  • skipLibCheck: true — node_modules .d.ts files are not re-checked.
  • Source maps enabled.
  • exclude: node_modules, lib, dist.

app adds

  • noEmit: true — type-checking only, the bundler (Vite/esbuild/Bun) emits.

lib adds

  • declaration: true + declarationMap: true — generates .d.ts + .d.ts.map for consumers.

Subpath exports

| Subpath | File | | --------------------- | ------------ | | @pyreon/typescript | base.json | | @pyreon/typescript/app | app.json | | @pyreon/typescript/lib | lib.json |

Peer dependencies

  • typescript >= 5.9.0

Gotchas

  • exactOptionalPropertyTypes is enabled. Optional properties need explicit | undefined when assigned from functions that may return undefined. This is intentional — it catches a real bug class.
  • noUncheckedIndexedAccess is enabled. Array element access returns T | undefined — guard with arr[i]? or if (!arr[i]) return.
  • jsxImportSource: "@pyreon/core" is fixed in base. If you're using a compat layer (@pyreon/react-compat, @pyreon/vue-compat, …), override jsxImportSource in your own tsconfig.
  • module: "Preserve" is for Bun/bundler resolution. If you need raw tsc emit, switch to module: "ESNext".

Documentation

Full docs: pyreon.dev/docs/typescript (or docs/src/content/docs/typescript.md in this repo).

License

MIT