Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lerna

Package Overview
Dependencies
Maintainers
3
Versions
276
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lerna - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

lib/commands/publish.js

@@ -185,4 +185,8 @@ var progressBar = require("../progress-bar");

execSync("npm dist-tag rm " + name + " prerelease");
execSync("npm dist-tag add " + name + "@" + NEW_VERSION + " stable");
execSync("npm dist-tag add " + name + "@" + NEW_VERSION + " latest");
if (process.env.NPM_DIST_TAG) {
execSync("npm dist-tag add " + name + "@" + NEW_VERSION + " " + process.env.NPM_DIST_TAG);
} else {
execSync("npm dist-tag add " + name + "@" + NEW_VERSION + " stable");
execSync("npm dist-tag add " + name + "@" + NEW_VERSION + " latest");
}
tick(name);

@@ -189,0 +193,0 @@ break;

@@ -29,5 +29,11 @@ var progressBar = require("../progress-bar");

var lastTagCommit = execSync("git rev-list --tags --max-count=1");
var lastTag = execSync("git describe " + lastTagCommit);
var hasTags = !!execSync("git tag");
var lastTagCommit;
var lastTag;
if (hasTags) {
lastTagCommit = execSync("git rev-list --tags --max-count=1");
lastTag = execSync("git describe --tags " + lastTagCommit);
}
packageNames.forEach(function (name) {

@@ -39,2 +45,7 @@ var cfg = getPackageConfig(config, name);

if (!hasTags) {
changedPackages.push(name);
return;
}
// check if package has changed since last release

@@ -41,0 +52,0 @@ var diff = FORCE_VERSION.indexOf("*") >= 0 || FORCE_VERSION.indexOf(name) >= 0 ||

{
"name": "lerna",
"version": "1.1.0",
"version": "1.1.1",
"description": "Tool for managing JavaScript projects with multiple packages",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -57,2 +57,5 @@ <p align="center">

> If you need to publish prerelease versions, set an env variable. `NPM_DIST_TAG=next lerna publish`.
> This will add the tag you specify instead of `latest` and `stable`.
## How it works

@@ -59,0 +62,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc