@@ -840,11 +840,12 @@ export default TurboModuleRegistry.getEnforcing<Spec>('${moduleName}');
840840 for ( const specFile of specFiles ) {
841841 const specName = specFile . replace ( 'Spec.g.h' , '' ) ;
842842 const windowsDir = path . join ( this . root , 'windows' ) ;
843- const headerPath = path . join ( windowsDir , `${ specName } .h` ) ;
844- const cppPath = path . join ( windowsDir , `${ specName } .cpp` ) ;
843+ const moduleDir = path . join ( windowsDir , specName ) ;
844+ const headerPath = path . join ( moduleDir , `${ specName } .h` ) ;
845+ const cppPath = path . join ( moduleDir , `${ specName } .cpp` ) ;
845846
846- if ( ! ( await fs . exists ( windowsDir ) ) ) {
847- await fs . mkdir ( windowsDir , { recursive : true } ) ;
847+ if ( ! ( await fs . exists ( moduleDir ) ) ) {
848+ await fs . mkdir ( moduleDir , { recursive : true } ) ;
848849 }
849850
850851 // Parse method signatures from codegen files first, then fallback to TypeScript spec files
@@ -1701,10 +1702,10 @@ export async function moduleWindowsSetupInternal(
17011702 `🏗️ Native${ moduleName } .ts - TurboModule spec file (edit with your API)` ,
17021703 ) ;
17031704 console . log (
1704- `💻 windows/${ moduleName } .h - C++ header file (implement your methods here)` ,
1705+ `💻 windows/${ moduleName } / ${ moduleName } .h - C++ header file (implement your methods here)` ,
17051706 ) ;
17061707 console . log (
1707- `⚙️ windows/${ moduleName } .cpp - C++ implementation file (add your logic here)` ,
1708+ `⚙️ windows/${ moduleName } / ${ moduleName } .cpp - C++ implementation file (add your logic here)` ,
17081709 ) ;
17091710 console . log ( '' ) ;
17101711 console . log ( chalk . bold ( 'Next steps:' ) ) ;
0 commit comments