Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(sass): dont try to process invalid directories
Browse files Browse the repository at this point in the history
  • Loading branch information
danbucholtz committed Jul 7, 2017
1 parent 141cb23 commit 8af9430
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/sass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,16 @@ function addComponentSassFiles(componentPath: string, collectedSassFiles: string


function getSiblingSassFiles(componentPath: string, sassConfig: SassConfig) {
return readdirSync(componentPath).filter(f => {
return isValidSassFile(f, sassConfig);
}).map(f => {
return join(componentPath, f);
});
try {
return readdirSync(componentPath).filter(f => {
return isValidSassFile(f, sassConfig);
}).map(f => {
return join(componentPath, f);
});
} catch (ex) {
// it's an invalid path
return [];
}
}


Expand Down

0 comments on commit 8af9430

Please sign in to comment.