copy-dependencies
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -41,3 +41,3 @@ #!/usr/bin/env node | ||
function logChanges(merged, target, pkgKey) { | ||
function logChanges(merged, target = {}, pkgKey) { | ||
var changes = Object.keys(merged).reduce((acc, key) => { | ||
@@ -78,4 +78,2 @@ if(merged[key] != target[key]) { | ||
if(sourcePackage.dependencies) { | ||
@@ -82,0 +80,0 @@ targetPackage.dependencies = processDependencies( |
{ | ||
"name": "copy-dependencies", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Copy the dependencies, peerDependencies and devDependencies from one node package to another.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# copy-dependencies | ||
Copy the dependencies, peerDependencies and devDependencies from one node package to another. | ||
Command line utility to copy the dependencies from one node package to another. | ||
(updates the target package.json file, does not copy any files across) | ||
Updates the package.json file in the target folder to include the values of dependencies, peerDependencies and devDependencies from the package.json in the source folder. Does not copy any files across. | ||
@@ -7,0 +7,0 @@ ## Usage |
3585
3