Skip to content

Commit b8fa3e5

Browse files
committed
feat: support open more entries in update-taro-entry
1 parent f042dc2 commit b8fa3e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/rn/update-taro-entry.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ const path = require('path')
66
const config = require('../../src/config.json')
77
const param = process.env.C
88

9-
// C=radio pnpm dev:taro:jdharmonycpp
9+
// C=radio pnpm dev:taro:jdharmonycpp or C=radio,button,cell pnpm dev:taro:jdharmonycpp
1010
function specialComponent(name) {
11-
return param && name.toLowerCase() == param.toLowerCase()
11+
const entries = param.split(',').map((i) => i.toLowerCase())
12+
return entries.includes(name.toLowerCase())
1213
}
1314

1415
// 已适配组件对象

0 commit comments

Comments
 (0)