Skip to content

Commit

Permalink
Handle libraries without namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Jan 21, 2021
1 parent a4e2f31 commit 9267ddc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/types/library/LibraryBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ class LibraryBuilder extends AbstractBuilder {
this.addTask("buildThemes", async () => {
// Only compile themes directly below the lib namespace to be in sync with the theme support at runtime
// which only loads themes from that folder.
const inputPattern = `/resources/${project.metadata.namespace}/themes/*/library.source.less`;
// TODO 3.0: Remove fallback in case of missing namespace
const inputPattern = `/resources/${project.metadata.namespace || "**"}/themes/*/library.source.less`;

return getTask("buildThemes").task({
workspace: resourceCollections.workspace,
Expand Down

0 comments on commit 9267ddc

Please sign in to comment.