@@ -3,8 +3,10 @@ import fg from 'fast-glob';
33import * as fs from 'fs' ;
44import { config } from '../../config' ;
55import { _currDir , getFilePath , pathResolver } from '.' ;
6- import { PROJECT_SHARED_IGNORE , ExpoResolvedConfig } from './config-types' ;
7- import { execSync } from 'child_process' ;
6+ import {
7+ PROJECT_SHARED_IGNORE ,
8+ ExpoResolvedConfig ,
9+ } from './config-types' ;
810import { ensureFilesPromise } from '..' ;
911import { commonInitialization } from '../init' ;
1012
@@ -88,21 +90,6 @@ async function initNatiwindExpoApp(
8890 permission : boolean
8991) {
9092 try {
91- // Use the configured package manager instead of hardcoded npx expo install
92- const packageManager = config . packageManager || 'npm' ;
93- const commands : { [ key : string ] : string } = {
94- npm : 'npm install babel-plugin-module-resolver' ,
95- yarn : 'yarn add babel-plugin-module-resolver' ,
96- pnpm : 'pnpm add babel-plugin-module-resolver' ,
97- bun : 'bun add babel-plugin-module-resolver' ,
98- } ;
99-
100- const installCommand = commands [ packageManager ] ;
101- if ( installCommand ) {
102- execSync ( installCommand , {
103- stdio : 'inherit' ,
104- } ) ;
105- }
10693 await commonInitialization ( config . expoProject , resolvedConfig , permission ) ;
10794 } catch ( err ) {
10895 throw new Error ( ( err as Error ) . message ) ;
0 commit comments