@@ -312,7 +312,7 @@ async function compileJSFileAsBinaryImpl (options: CompilationOptions, logger: L
312
312
}
313
313
314
314
logger . stepStarting ( 'Inserting custom code into Node.js source' ) ;
315
- await fs . mkdir ( path . join ( nodeSourcePath , 'lib-boxednode' , namespace ) , { recursive : true } ) ;
315
+ await fs . mkdir ( path . join ( nodeSourcePath , 'lib-boxednode' ) , { recursive : true } ) ;
316
316
let entryPointTrampolineSource = await fs . readFile (
317
317
path . join ( __dirname , '..' , 'resources' , 'entry-point-trampoline.js' ) , 'utf8' ) ;
318
318
entryPointTrampolineSource = entryPointTrampolineSource . replace (
@@ -322,9 +322,9 @@ async function compileJSFileAsBinaryImpl (options: CompilationOptions, logger: L
322
322
enableBindingsPatch
323
323
} ) ) ;
324
324
await fs . writeFile (
325
- path . join ( nodeSourcePath , 'lib-boxednode' , namespace , `${ namespace } .js` ) ,
325
+ path . join ( nodeSourcePath , 'lib-boxednode' , `${ namespace } .js` ) ,
326
326
entryPointTrampolineSource ) ;
327
- extraJSSourceFiles . push ( `./lib-boxednode/${ namespace } / ${ namespace } .js` ) ;
327
+ extraJSSourceFiles . push ( `./lib-boxednode/${ namespace } .js` ) ;
328
328
logger . stepCompleted ( ) ;
329
329
330
330
logger . stepStarting ( 'Storing executable metadata' ) ;
@@ -355,7 +355,7 @@ async function compileJSFileAsBinaryImpl (options: CompilationOptions, logger: L
355
355
let mainSource = await fs . readFile (
356
356
path . join ( __dirname , '..' , 'resources' , 'main-template.cc' ) , 'utf8' ) ;
357
357
mainSource = mainSource . replace ( / \b R E P L A C E _ W I T H _ E N T R Y _ P O I N T \b / g,
358
- JSON . stringify ( `${ namespace } /${ namespace } ` ) ) ;
358
+ JSON . stringify ( `lib-boxednode /${ namespace } ` ) ) ;
359
359
mainSource = mainSource . replace ( / \b R E P L A C E _ D E C L A R E _ L I N K E D _ M O D U L E S \b / g,
360
360
registerFunctions . map ( ( fn ) => `void ${ fn } (const void**,const void**);\n` ) . join ( '' ) ) ;
361
361
mainSource = mainSource . replace ( / \b R E P L A C E _ D E F I N E _ L I N K E D _ M O D U L E S \b / g,
0 commit comments