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

lerna-script-tasks-dependencies

v1.4.0

Published

tasks for lerna-script that adds dependency management support

Downloads

136

Readme

lerna-script-tasks-dependencies

lerna-script tasks for managing dependency versions across lerna repo.

install

npm install --save-dev lerna-script-tasks-dependencies

Usage

TBD

const {extraneous, unmanaged, sync, latest} = require('lerna-script-tasks-dependencies');

module.exports['deps:sync'] = sync();
module.exports['deps:extraneous'] = extraneous();
module.exports['deps:unmanaged'] = unmanaged();
module.exports['deps:latest'] = latest();

API

sync({[packages]})(log): Promise

Task that syncs dependency versions (dependencies, devDependencies, peerDependencies) with those defined in lerna.json as managed*Dependencies.

Parameters:

  • packages - custom package list, or defaults as defined by lerna.json
  • log - npmlog instance passed-in by lerna-script;

Say you have lerna.json in root of your project like:

{
  "managedDependencies": {
    "lodash": "~1.0.0"
  }
}

upon invocation of this task for all submodules that have lodash defined in dependencies or devDependencies version of lodash will be updated to ~1.0.0.

unmanaged({[packages]})(log): Promise

List dependencies, that are present in modules dependencies, devDependencies, peerDependencies, but not defined in lerna.json as managed*Dependencies.

Parameters:

  • packages - custom package list, or defaults as defined by lerna.json
  • log - npmlog instance passed-in by lerna-script;

extraneous({[packages]})(log): Promise

List dependencies, that are present in lerna.json as managed*Dependencies, but not defined in modules dependencies, devDependencies, peerDependencies.

Parameters:

  • packages - custom package list, or defaults as defined by lerna.json
  • log - npmlog instance passed-in by lerna-script;

latest({[addRange, silent]})(log): Promise

List dependencies, that are present in lerna.json as managed*Dependencies and needs updating based on latest version published in npmjs.org. The lerna.json can contain the following autoSelect rules which will automatically mark the relevant packages as selected

{
  "managedDependencies": {
    "lodash": "~1.0.0",
    "dontUpdateMe": "3.0.5"
  },
  "autoselect": {
    "versionDiff": ["minor", "patch"],
    "exclude": ["dontUpdateMe"]
  }
}

In the above example, if a minor or a patch update is found for one of the packages, they will be selected by default unless the package name is dontUpdateMe

Parameters:

  • addRange - when updating version in lerna.json to add range operator ('~', '^', ...). By default it sets fixed version.
  • silent - does not prompt with the list of dependencies and automatically updates auto-selected packages versions in the lerna.json file
  • log - npmlog instance passed-in by lerna-script;