We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2353fd2 + 815e491 commit 370cf80Copy full SHA for 370cf80
lib/builder.js
@@ -43,7 +43,6 @@ function Builder(dir, parent) {
43
this.dir = dir;
44
this.root = ! parent;
45
this.parent = parent;
46
- this.basename = basename(dir);
47
this.globalLookupPaths = [];
48
this.lookupPaths = [];
49
this.ignored = {
@@ -57,6 +56,10 @@ function Builder(dir, parent) {
57
56
// load config
58
this.config = this.json();
59
this.config.paths = this.config.paths || [];
+
60
+ this.basename = this.root
61
+ ? this.config.name
62
+ : basename(dir);
63
64
// root level lookup paths are
65
// applied globally and affect
0 commit comments