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 815e491

Browse filesBrowse files
committed
If root set the basename to component.json#name
If the root folder has a different name than the component it breaks when copying assets to the build directory.
1 parent 2353fd2 commit 815e491
Copy full SHA for 815e491

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.