Socket
Socket
Sign inDemoInstall

@lerna/command

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/command - npm Package Compare versions

Comparing version 3.0.0-beta.17 to 3.0.0-beta.18

18

CHANGELOG.md

@@ -6,2 +6,20 @@ # Change Log

<a name="3.0.0-beta.18"></a>
# [3.0.0-beta.18](https://github.com/lerna/lerna/compare/v3.0.0-beta.17...v3.0.0-beta.18) (2018-04-24)
### Features
* **command:** Move GitUtilities.isInitialized into class method ([abecfcc](https://github.com/lerna/lerna/commit/abecfcc))
* **filters:** Add `--include-filtered-dependents` flag ([#1393](https://github.com/lerna/lerna/issues/1393)) ([2838260](https://github.com/lerna/lerna/commit/2838260))
### BREAKING CHANGES
* **command:** GitUtilities.isInitialized no longer exists. You shouldn't be using GitUtilities.
<a name="3.0.0-beta.17"></a>

@@ -8,0 +26,0 @@ # [3.0.0-beta.17](https://github.com/lerna/lerna/compare/v3.0.0-beta.16...v3.0.0-beta.17) (2018-04-13)

25

index.js

@@ -5,5 +5,5 @@ "use strict";

const dedent = require("dedent");
const execa = require("execa");
const log = require("npmlog");
const GitUtilities = require("@lerna/git-utils");
const PackageGraph = require("@lerna/package-graph");

@@ -162,7 +162,16 @@ const Project = require("@lerna/project");

gitInitialized() {
const opts = {
cwd: this.project.rootPath,
// don't throw, just want boolean
reject: false,
// only return code, no stdio needed
stdio: "ignore",
};
return execa.sync("git", ["rev-parse"], opts).code === 0;
}
runValidations() {
if (
(this.options.since !== undefined || this.requiresGit) &&
!GitUtilities.isInitialized(this.execOpts)
) {
if ((this.options.since !== undefined || this.requiresGit) && !this.gitInitialized()) {
throw new ValidationError("ENOGIT", "The git binary was not found, or this is not a git repository.");

@@ -219,2 +228,8 @@ }

if (this.options.includeFilteredDependents) {
chain = chain.then(() => {
this.filteredPackages = this.packageGraph.addDependents(this.filteredPackages);
});
}
if (this.options.includeFilteredDependencies) {

@@ -221,0 +236,0 @@ chain = chain.then(() => {

10

package.json
{
"name": "@lerna/command",
"version": "3.0.0-beta.17",
"version": "3.0.0-beta.18",
"description": "TODO",

@@ -36,6 +36,5 @@ "keywords": [

"@lerna/collect-packages": "^3.0.0-beta.17",
"@lerna/collect-updates": "^3.0.0-beta.15",
"@lerna/collect-updates": "^3.0.0-beta.18",
"@lerna/filter-packages": "^3.0.0-beta.10",
"@lerna/git-utils": "^3.0.0-beta.15",
"@lerna/package-graph": "^3.0.0-beta.14",
"@lerna/package-graph": "^3.0.0-beta.18",
"@lerna/project": "^3.0.0-beta.17",

@@ -45,6 +44,7 @@ "@lerna/validation-error": "^3.0.0-beta.10",

"dedent": "^0.7.0",
"execa": "^0.9.0",
"lodash": "^4.17.5",
"npmlog": "^4.1.2"
},
"gitHead": "5e462676b3793b8d4981fc7f8b81af2fc839adf7"
"gitHead": "7995561e8d010d9fa2e59109b57b9ad8573baba1"
}
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