fix bug with NpmPackage ignoring files in root of package
This commit is contained in:
parent
a999f53700
commit
c62848a886
|
@ -189,6 +189,7 @@ public class NpmPackage {
|
|||
|
||||
File dir = new File(path);
|
||||
for (File f : dir.listFiles()) {
|
||||
if (!Utilities.existsInList(f.getName(), ".git", ".svn") && !Utilities.existsInList(f.getName(), exemptions)) {
|
||||
if (f.isDirectory()) {
|
||||
String d = f.getName();
|
||||
if (!d.equals("package")) {
|
||||
|
@ -206,6 +207,11 @@ public class NpmPackage {
|
|||
}
|
||||
}
|
||||
loadSubFolders(res, dir.getAbsolutePath(), f);
|
||||
} else {
|
||||
NpmPackageFolder folder = res.new NpmPackageFolder("package/$root");
|
||||
folder.folder = dir;
|
||||
res.folders.put("package/$root", folder);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue