@@ -105,17 +105,7 @@ export const add = new Command()
105
105
for ( const comp of componentsToWrite ) {
106
106
spinner . text = `Installing ${ comp . name } ...` ;
107
107
108
- if ( Array . isArray ( comp . paths ) ) {
109
- await writeFiles ( comp , comp . paths , config , spinner , options . overwrite ) ;
110
- } else {
111
- await writeFiles (
112
- comp ,
113
- comp . paths [ config . platforms === 'universal' ? 'universal' : 'native-only' ] ,
114
- config ,
115
- spinner ,
116
- options . overwrite
117
- ) ;
118
- }
108
+ await writeFiles ( comp , comp . paths , config , spinner , options . overwrite ) ;
119
109
120
110
npmPackages . push ( ...comp . npmPackages ) ;
121
111
}
@@ -257,15 +247,6 @@ async function promptForConfig(cwd: string) {
257
247
const highlight = ( text : string ) => chalk . cyan ( text ) ;
258
248
259
249
const options = await prompts ( [
260
- {
261
- type : 'select' ,
262
- name : 'platforms' ,
263
- message : `Which ${ highlight ( 'platforms' ) } do you support?` ,
264
- choices : [
265
- { title : 'Universal (Web, iOS, and Android)' , value : 'universal' } ,
266
- { title : 'Native Only (iOS and Android)' , value : 'native-only' } ,
267
- ] ,
268
- } ,
269
250
{
270
251
type : 'text' ,
271
252
name : 'components' ,
@@ -281,7 +262,6 @@ async function promptForConfig(cwd: string) {
281
262
] ) ;
282
263
283
264
const config = rawConfigSchema . parse ( {
284
- platforms : options . platforms ,
285
265
aliases : {
286
266
lib : options . lib ,
287
267
components : options . components ,
0 commit comments