Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 370cf80

Browse filesBrowse files
committed
Merge pull request #95 from CamShaft/patch-1
If root set the basename to component.json#name
2 parents 2353fd2 + 815e491 commit 370cf80
Copy full SHA for 370cf80

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎lib/builder.js

Copy file name to clipboardExpand all lines: lib/builder.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ function Builder(dir, parent) {
4343
this.dir = dir;
4444
this.root = ! parent;
4545
this.parent = parent;
46-
this.basename = basename(dir);
4746
this.globalLookupPaths = [];
4847
this.lookupPaths = [];
4948
this.ignored = {
@@ -57,6 +56,10 @@ function Builder(dir, parent) {
5756
// load config
5857
this.config = this.json();
5958
this.config.paths = this.config.paths || [];
59+
60+
this.basename = this.root
61+
? this.config.name
62+
: basename(dir);
6063

6164
// root level lookup paths are
6265
// applied globally and affect

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.