Skip to content

Commit

Permalink
fix(getComponentInfo): subcomponents from js files (#2862)
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason authored Jun 1, 2018
1 parent 3a30105 commit 9d5889d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulp/plugins/util/getComponentInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const getComponentInfo = (filepath) => {
info.subcomponents = info.isParent
? fs
.readdirSync(dir)
.filter(file => !/(index\.js|d\.ts)$/.test(file))
.filter(file => /^(?!index).*\.js$/.test(file))
.filter(file => dirname !== path.basename(file, path.extname(file)))
.map(file => path.basename(file, path.extname(file)))
: null
Expand Down

0 comments on commit 9d5889d

Please sign in to comment.