Skip to content

Commit

Permalink
fix(generators): Add .styles to barrel export exception (#1636 by @ha…
Browse files Browse the repository at this point in the history
…richaran-bole)

[skip ci]
  • Loading branch information
haricharan-bole authored Mar 24, 2021
1 parent 5c7ee0a commit 3cc57e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/generators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ export function generateFromTemplate(generator: string, options: GeneratorOption
!options.skipIndexFile &&
hasIndex &&
!filename.includes(".test") &&
!filename.includes(".story")
!filename.includes(".story") &&
!filename.includes(".styles")
) {
const basename = filename.split(".")[0]
const exportLine = `export * from "./${kebabCaseName}/${basename}"\n`
Expand Down

0 comments on commit 3cc57e7

Please sign in to comment.