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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jaccomeijer/jmmake

v6.33.14

Published

Node build tool for npm packages in a git repository. Npm 7 workspaces are supported. Heavy lifting is done by the '@npmcli/arborist' package.

Downloads

32

Readme

Make

Node build tool for npm packages in a git repository. Npm 7 workspaces are supported. Heavy lifting is done by the @npmcli/arborist package.

Npm workspace

The build tool works with git repostiories that contain npm packages. Either with or witout workspaces.

Github token

Creating Github releases requires a token with write access to the repository.

export GITHUB_TOKEN=paste_token_here

You can rename template.env.development into .env.development and save the token in there.

Install

npm install -g @jaccomeijer/jmmake

Run without installing

npx @jaccomeijer/jmmake build

List all packages in a repository

Lists the workspaces of a package. Without workspaces the repository itself is listed.

jmmake list

Build all packages in a repository

The build command runs npm run build in all package folders. The command does not publish, push or release.

jmmake build

Version a package in a repository

The version command updates all related packages in a repository. The command does not publish, push or release.

Versioning

jmmake version @org/package-name

Publish a package in a repository

The publish command publishes the package to the npm repository. The command also pushes and releases to git.

jmmake publish @org/package-name

Release a package in a repository

The release command combines the three commands above. The command will build, version and publish the package.

jmmake release @org/package-name

Sync and sort package.json for all workspaces

Read values from the root package.json and write them to the package.json of all workspaces.

These fields values are synced:

  • author
  • bugs
  • contributors
  • engines
  • homepage
  • keywords
  • license
  • publishConfig
  • repository

This key order is used:

  • name
  • version
  • private
  • description
  • keywords
  • homepage
  • bugs
  • repository
  • license
  • author
  • contributors
  • exports
  • typesVersions
  • main
  • files
  • bin
  • publishConfig
  • workspaces
  • scripts
  • dependencies
  • devDependencies
  • peerDependencies
  • engines
  • browserslist
jmmake sync

Link packages from another repository into the working directory

Creates symlinks in the ./node_modules folder for the package found at the path specified.

jmmake link ../link/this/repository