Skip to content

Commit

Permalink
fix(cli): cli trying to transform directories (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
Esemesek committed Nov 28, 2021
1 parent c0c48c5 commit 14d9edd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/src/linaria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ function processFiles(files: string[], options: Options) {
);

resolvedFiles.forEach((filename) => {
if (fs.lstatSync(filename).isDirectory()) {
return;
}

const outputFilename = resolveOutputFilename(
filename,
options.outDir,
Expand Down

0 comments on commit 14d9edd

Please sign in to comment.