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

@time4peter/nx-release-tools

v1.1.0

Published

Reusable release automation tools for Nx monorepos

Readme

@time4peter/nx-release-tools

Automated release tools for Nx monorepos with OTP-aware publishing, git tagging, and TypeScript path alias bundling.

Features

  • 🚀 Automated Releases - Version bump, build, and publish in one command
  • 🎯 Individual Package Release - Release specific packages with --packages flag
  • 🔐 Smart OTP Handling - Prompts for OTP only when ready to publish
  • 🏷️ Auto Git Tagging - Creates git tags for each package version
  • 📦 TypeScript Bundling - Bundles internal dependencies and fixes path aliases
  • 🔧 Multi Package Manager - Supports npm, pnpm, and yarn
  • 🎯 Nx Integration - First-class Nx plugin with generators and executors
  • 💻 CLI Tool - Standalone nx-release command

Installation

npm install -D @time4peter/nx-release-tools
# or
pnpm add -D @time4peter/nx-release-tools
# or
yarn add -D @time4peter/nx-release-tools

Quick Start

1. Initialize Release Configuration

nx g @time4peter/nx-release-tools:init

This will:

  • Create .nx-release.json configuration file
  • Add release scripts to package.json
  • Set up bundling scripts if needed
  • Update .gitignore

2. Configure (Optional)

Edit .nx-release.json to customize:

{
  "packageManager": "pnpm",
  "packages": [
    {
      "name": "*",
      "path": "packages/*",
      "distPath": "dist/packages/*"
    }
  ],
  "bundling": {
    "enabled": true,
    "aliases": {
      "@my-org/utils": "./packages/utils",
      "@/core": "./packages/core"
    }
  }
}

3. Create a Release

Release All Packages

# Patch release (0.0.x)
npm run release:patch

# Minor release (0.x.0)
npm run release:minor

# Major release (x.0.0)
npm run release:major

Release Specific Packages

# Release only specific packages
nx-release patch --packages package-a,package-b

# Or use npm scripts with package names
npx nx-release minor -p utils,core

# Examples:
nx-release patch --packages @my-org/utils
nx-release minor --packages shared,components
nx-release major -p authentication

How It Works

  1. Version Bump - Uses nx release version or fallback to npm
  2. Git Tags - Creates tags like @org/[email protected]
  3. Build - Runs your build command
  4. Bundle - Fixes TypeScript path aliases (if enabled)
  5. OTP Prompt - Asks for OTP right before publishing
  6. Publish - Publishes to npm with OTP
  7. Git Push - Pushes commits and tags

Configuration Options

packages

Define which packages to release:

"packages": [
  {
    "name": "@my-org/*",
    "path": "packages/*",
    "distPath": "dist/packages/*"
  }
]

bundling

Bundle internal dependencies:

"bundling": {
  "enabled": true,
  "aliases": {
    "@internal/util": "./packages/util"
  }
}

git

Configure git behavior:

"git": {
  "tags": true,
  "push": true,
  "commitMessage": "chore(release): {version}"
}

CLI Usage

The nx-release CLI is available after installation:

# Show help
nx-release --help

# Create releases
nx-release patch
nx-release minor
nx-release major

# Initialize configuration
nx-release init

Nx Executor

Use in project.json:

{
  "targets": {
    "release": {
      "executor": "@time4peter/nx-release-tools:release",
      "options": {
        "versionType": "patch"
      }
    },
    "release-specific": {
      "executor": "@time4peter/nx-release-tools:release",
      "options": {
        "versionType": "minor",
        "packages": ["utils", "core"]
      }
    }
  }
}

Run with:

# Release all packages
nx release my-project

# Release specific packages
nx release-specific my-project

License

MIT