Skip to content

Commit 985595e

Browse files
author
davidysxue
committed
chore: remove index.json
1 parent 8ae735e commit 985595e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ class BuildTask {
271271
const jsonFileList = this.componentListMap.jsonFileList
272272

273273
if (jsonFileList && jsonFileList.length) {
274-
return copy(this.componentListMap.jsonFileList)
274+
// 去掉 index.json
275+
return copy(this.componentListMap.jsonFileList.filter(file => (file !== 'index.json')))
275276
}
276277

277278
return done()

0 commit comments

Comments
 (0)