@@ -419,13 +419,6 @@ export async function renderFiles(
419419 ) ;
420420 resourceFiles . push ( ...ojsResourceFiles ) ;
421421
422- // now that all execution is done and supportign files have been
423- // contributed, normalize the supporting files so there is no overlap
424- executeResult . supporting = normalizeSupporting (
425- context . target . source ,
426- executeResult . supporting ,
427- ) ;
428-
429422 // keep md if requested
430423 const keepMd = executionEngineKeepMd ( context . target . input ) ;
431424 if ( keepMd && context . format . execute [ kKeepMd ] ) {
@@ -495,27 +488,3 @@ class RenderInvalidYAMLError extends YAMLValidationError {
495488 super ( "Render failed due to invalid YAML." ) ;
496489 }
497490}
498-
499- function normalizeSupporting ( source : string , supporting : string [ ] ) : string [ ] {
500- // first ensure all paths are absolute and normalized
501- const dir = dirname ( source ) ;
502- supporting = supporting . map ( ( file ) =>
503- isAbsolute ( file ) ? file : join ( dir , file )
504- ) ;
505-
506- // filter on existence
507- supporting = supporting . filter ( existsSync ) ;
508-
509- // any file that is within another dir in the list is removed
510- const parentDirs = supporting . filter ( ( file ) =>
511- Deno . statSync ( file ) . isDirectory
512- ) ;
513- supporting = supporting . filter ( ( file ) =>
514- ! parentDirs . some ( ( parentDir ) =>
515- file . startsWith ( parentDir ) && file !== parentDir
516- )
517- ) ;
518-
519- // now de-dupe and make all paths relative
520- return ld . uniq ( supporting . map ( ( file ) => relative ( dir , file ) ) ) ;
521- }
0 commit comments