Comparing version 1.2.6 to 1.2.7
{ | ||
"name": "depsync", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"author": "Dom Chen", | ||
@@ -5,0 +5,0 @@ "homepage": "http://www.idom.me/", |
@@ -49,2 +49,8 @@ ////////////////////////////////////////////////////////////////////////////////////// | ||
{ | ||
name: "non-recursive", | ||
shortName: "", | ||
type: "boolean", | ||
description: "Skip synchronizing the sub-projects." | ||
}, | ||
{ | ||
name: "version", | ||
@@ -51,0 +57,0 @@ shortName: "v", |
@@ -102,3 +102,3 @@ ////////////////////////////////////////////////////////////////////////////////////// | ||
} else { | ||
let task = new DepsTask(configFileName, version, commandOptions.platform); | ||
let task = new DepsTask(configFileName, version, commandOptions.platform, commandOptions["non-recursive"]); | ||
task.run(() => { | ||
@@ -105,0 +105,0 @@ process.exit(0); |
@@ -36,6 +36,7 @@ ////////////////////////////////////////////////////////////////////////////////////// | ||
function DepsTask(configFile, version, platform) { | ||
function DepsTask(configFile, version, platform, nonRecursive) { | ||
this.configFile = configFile; | ||
this.version = version; | ||
this.platform = platform; | ||
this.nonRecursive = nonRecursive; | ||
} | ||
@@ -55,4 +56,6 @@ | ||
tasks.push(new RepoTask(item)); | ||
let depsFile = path.join(item.dir, "DEPS"); | ||
tasks.push(new DepsTask(depsFile, this.version, this.platform)); | ||
if (!this.nonRecursive) { | ||
let depsFile = path.join(item.dir, "DEPS"); | ||
tasks.push(new DepsTask(depsFile, this.version, this.platform, this.nonRecursive)); | ||
} | ||
} | ||
@@ -59,0 +62,0 @@ } |
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
46290
1082