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

@ogs-gmbh/rolldown-plugin-package-json

v1.1.0

Published

A powerful and flexible plugin for Rolldown that enhances package.json handling.

Readme

We're OGS, check out our work on github.com/ogs-gmbh

package.json Plugin for Rolldown

A powerful and flexible plugin for Rolldown that enhances package.json handling.

Preview

  • Package Transformation
    Automated copying and modification of package.json, allowing selective removal of fields to produce a clean, production-ready manifest.

  • Dynamic Exports Generation
    Automatically generates exports maps based on build outputs, ensuring correct module resolution for ESM and CommonJS environments.

  • Dependency Optimization
    Integrates with the build pipeline to control dependency handling and reduce unnecessary bundle inclusion.

  • Build-Time Integration
    Seamlessly hooks into the Rolldown lifecycle to perform transformations efficiently during the build process.

Getting Started

[!IMPORTANT] We're offering an extensive API-Reference covered with in-depth usage examples of this project.

To get a starting point, simply refer to our documentation at ogs-gmbh.github.io/rolldown-plugin-package-json.

Prerequisites

  • Node.js version 18 or higher
  • A package manager: e.g. npm, pnpm, ...

Installation

Using npm:

$ npm add -D @ogs-gmbh/rolldown-plugin-package-json

Using yarn:

$ pnpm add -D @ogs-gmbh/rolldown-plugin-package-json

Using pnpm:

$ pnpm add -D @ogs-gmbh/rolldown-plugin-package-json

Using bun:

$ bun add -D @ogs-gmbh/rolldown-plugin-package-json

Usage

rolldown-plugin-package-json can be integrated with either tsdown or Rolldown. Here's an example showing the usage of this plugin with tsdown. You can get a deeper understanding about this plugin by taking a look into the reference.

import { defineConfig } from "tsdown";
import { packageJsonPlugin } from "@ogs-gmbh/rolldown-plugin-package-json";

export default defineConfig({
  entry: "src/**/*.ts",
  dts: true,
  outDir: "dist/main",
  unbundle: true,
  plugins: [
    packageJsonPlugin({
      clean: true,
      exports: {
        enabled: true,
        override: { ".": "./public-api.mjs", "./feature-a": "feature-a.mjs" }
      }
    })
  ]
});

License

The MIT License (MIT) - Please have a look at the LICENSE file for more details.

Contributing

Contributions are always welcome and greatly appreciated. Whether you want to report a bug, suggest a new feature, or improve the documentation, your input helps make the project better for everyone.

Feel free to submit a pull request, issue or feature request.

Issues and Feature Requests

Reporting an issue or creating a feature request is made by creating a new issue on this repository.

You can create a new issue or feature request here.

Pull Requests

GitHub offers a solid guideline for contributing to open source projects through pull requests, covering key practices. These best practices provide a reliable starting point for making effective contributions.

You can find the guidelines here.

Code Of Conduct

We are committed to keeping a welcoming, inclusive, and respectful community for everyone. To help us achieve this, we kindly ask that you adhere to our Code of Conduct.

Disclaimer

All trademarks and registered trademarks mentioned are property of their respective owners and are used for identification purposes only. Use of these names does not imply endorsement or affiliation.

This project is a trademark of OGS Gesellschaft für Datenverarbeitung und Systemberatung mbH. The License does not grant rights to use the trademark without permission.


Gesellschaft für Datenverarbeitung und Systemberatung mbH

Imprint | Contact | Careers