@eclipse-che/theia-generator
Advanced tools
Comparing version 0.0.1-1543417089 to 0.0.1-1543477881
@@ -119,4 +119,4 @@ "use strict"; | ||
}); | ||
// ok now, add all files from these dependencies | ||
const globOptions = { nocase: true, nosort: true, nodir: true, dot: true }; | ||
// ok now, add all files from these dependencies (and ignore node_modules dependencies) | ||
const globOptions = { nocase: true, nosort: true, ignore: 'node_modules/**', nodir: true, dot: true }; | ||
this.toCopyFiles = this.toCopyFiles.concat.apply([], yield Promise.all(this.dependencies.map(dependencyDirectory => { | ||
@@ -123,0 +123,0 @@ return glob.promise('**', Object.assign(globOptions, { cwd: dependencyDirectory })) |
@@ -139,8 +139,9 @@ "use strict"; | ||
// insert all children as well | ||
yarnNode.children.map(child => { | ||
const childName = child.name.substring(0, child.name.lastIndexOf('@')); | ||
if (dependencies.indexOf(childName) < 0) { | ||
if (yarnNode.children) { | ||
yarnNode.children.map(child => { | ||
const childName = child.name.substring(0, child.name.lastIndexOf('@')); | ||
dependencies.push(childName); | ||
} | ||
}); | ||
this.insertNode(child, nodeTreeDependencies); | ||
}); | ||
} | ||
} | ||
@@ -147,0 +148,0 @@ /** |
{ | ||
"name": "@eclipse-che/theia-generator", | ||
"version": "0.0.1-1543417089", | ||
"version": "0.0.1-1543477881", | ||
"description": "Eclipse Che - Theia tooling", | ||
@@ -5,0 +5,0 @@ "author": "Florent Benoit", |
@@ -137,4 +137,4 @@ /********************************************************************* | ||
// ok now, add all files from these dependencies | ||
const globOptions = { nocase: true, nosort: true, nodir: true, dot: true }; | ||
// ok now, add all files from these dependencies (and ignore node_modules dependencies) | ||
const globOptions = { nocase: true, nosort: true, ignore: 'node_modules/**', nodir: true, dot: true }; | ||
this.toCopyFiles = this.toCopyFiles.concat.apply([], | ||
@@ -165,3 +165,4 @@ await Promise.all(this.dependencies.map(dependencyDirectory => { | ||
Production.FORBIDDEN_PACKAGES, | ||
Production.EXCLUDED_PACKAGES).getDependencies('@eclipse-che/theia-assembly')); | ||
Production.EXCLUDED_PACKAGES, | ||
).getDependencies('@eclipse-che/theia-assembly')); | ||
return Promise.resolve(true); | ||
@@ -168,0 +169,0 @@ } |
@@ -15,2 +15,3 @@ /********************************************************************* | ||
import { CliError } from './cli-error'; | ||
/** | ||
@@ -36,3 +37,4 @@ * Handle the parsing of node packages with Yarn. | ||
private readonly forbiddenPackages: string[], | ||
private readonly excludedPackages: string[]) { } | ||
private readonly excludedPackages: string[], | ||
) { } | ||
@@ -85,2 +87,3 @@ /** | ||
} | ||
this.findDependencies(initNode!, nodeTreeDependencies, subsetDependencies); | ||
@@ -158,8 +161,9 @@ | ||
// insert all children as well | ||
yarnNode.children.map(child => { | ||
const childName = child.name.substring(0, child.name.lastIndexOf('@')); | ||
if (dependencies!.indexOf(childName) < 0) { | ||
if (yarnNode.children) { | ||
yarnNode.children.map(child => { | ||
const childName = child.name.substring(0, child.name.lastIndexOf('@')); | ||
dependencies!.push(childName); | ||
} | ||
}); | ||
this.insertNode(child, nodeTreeDependencies); | ||
}); | ||
} | ||
} | ||
@@ -166,0 +170,0 @@ |
Sorry, the diff of this file is not supported yet
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
106883
1739