check-peer-dependencies
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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 |
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
360
89
0
41264
6
17