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

midgard-yarn-strict

v1.2.4

Published

NodeJS package manager based on yarn and pnpm

Downloads

408

Readme

midgard-yarn-strict

midgard-yarn-strict is a fork of midgard-yarn, which is itself a fork of yarn v1.

Improvements over yarn

  • midgard-yarn improves reliability and performance of yarn for large repositories.

  • midgard-yarn-strict adds strictness, which is necessary for a more deterministic package installations.

  • Scoping, midgard-yarn-strict can install only the dependencies of a subset of the workspaces. (eg. npx midgard-yarn-strict "build-tools-*" will only install the dependencies needed by the workspaces with name starting by "build-tools-")

Usage

Install

Instead of yarn install, run

$ npx midgard-yarn-strict

The installation flags supported by yarn are not supported by the CLI but some are still supported via the yarn config file.

Upgrade or add a dependency

Manual edits to the package.json files is the only current supported way to manage dependencies, no CLI tool is available yet.

yarn link

Not supported (yet).

yarn run

The yarn-run command is not affected by midgard-yarn-strict, so you can still run yarn test for example.

Strictness

Strictness means that workspaces can only use the dependencies that they declare in their package.json. This makes the dependency management processes more predictable.

Configuration

midgard-yarn-strict allows you to declare dependencies on behalf of external packages, this is useful when external packages forgot to declare all their dependencies.

Example: package.json

{
  // rest of package.json
  "extraDependencies": {
    "webpack": {
      "^4.0.0": {
        "dependencies": {
          "webpack-cli": "^4.0.0"
        }
      }
    }
  }
}

Long term

This package is meant as a stopgap solution while waiting for npm to support strictness.

Prior art

This package manager is built on the learnings brought by npm, yarn and pnpm.