Skip to content

Commit

Permalink
fix: index file judgement bug (close: #306) (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy authored and ulivz committed May 1, 2018
1 parent 7ed3620 commit fefa16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async function genComponentRegistrationFile ({ sourceDir }) {
return `import Vue from 'vue'\n` + components.map(genImport).join('\n')
}

const indexRE = /\b(index|readme)\.md$/i
const indexRE = /(?<=(^|\/))(index|readme)\.md$/i
const extRE = /\.(vue|md)$/

function fileToPath (file) {
Expand Down

0 comments on commit fefa16c

Please sign in to comment.