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

check-peer-dependencies

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-peer-dependencies - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

CHANGELOG.md

@@ -0,3 +1,11 @@

## 1.0.1 (2019-10-15)
1.0.1
### Features
* add whitespace to output around package manager commands ([cdd56ed](https://github.com/christopherthielen/check-peer-dependencies/commit/cdd56ed))
## 1.0.0 (2019-10-14)
Initial release

15

dist/checkPeerDependencies.js

@@ -44,3 +44,4 @@ #!/usr/bin/env node

console.log();
console.log('Searching for solutions:');
console.log('Searching for solutions...');
console.log();
var resolutions = solution_1.findPossibleResolutions(problems, allNestedPeerDependencies);

@@ -60,11 +61,19 @@ var installs = resolutions.filter(function (r) { return r.resolution && r.resolutionType === 'install'; }).map(function (r) { return r.resolution; });

}
var commandLines = packageManager_1.getCommandLines(packageManager, installs, upgrades);
if (installMissingPeerDependencies) {
console.log('Installing peerDependencies...');
packageManager_1.getCommandLines(packageManager, installs, upgrades).forEach(function (command) { return shelljs_1.exec(command); });
console.log();
commandLines.forEach(function (command) {
console.log("$ " + command);
shelljs_1.exec(command);
console.log();
});
}
else {
packageManager_1.getCommandLines(packageManager, installs, upgrades).forEach(function (command) { return console.log(command); });
console.log("Install peerDependencies using " + (commandLines.length > 1 ? 'these commands:' : 'this command') + ":");
console.log();
commandLines.forEach(function (command) { return console.log(command); });
console.log();
}
}
exports.checkPeerDependencies = checkPeerDependencies;

4

package.json
{
"name": "check-peer-dependencies",
"version": "1.0.0",
"version": "1.0.1",
"description": "Checks peer dependencies of the current package. Offers solutions for any that are unmet.",

@@ -9,2 +9,3 @@ "main": "dist/check_peer_dependencies.js",

"prepublishOnly": "npm run build",
"release": "release",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -41,4 +42,5 @@ },

"@types/yargs": "^13.0.3",
"@uirouter/publish-scripts": "^2.3.34",
"typescript": "^3.6.4"
}
}
## check-peer-dependencies
This is a command line utility that checks an application's peerDependencies.
**Checks peer dependencies of the current NodeJS package. Offers solutions for any that are unmet.**

@@ -17,8 +17,11 @@ This utility will recursively find all `peerDependencies` in your project's `dependencies` list.

options:
- `--install`: if any peerDependencies are incorrect, installs correct versions
- `--yarn`: force yarn package manager mode
- `--npm`: force npm package manager mode
- `--help`: print usage information
Options:
```
--help, -h Print usage information [boolean]
--version Show version number [boolean]
--yarn Use yarn package manager [boolean]
--npm Use npm package manager [boolean]
--install Install missing or incorrect peerDependencies [boolean]
```

@@ -25,0 +28,0 @@ ---

Sorry, the diff of this file is not supported yet

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