File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,15 @@ const NextMarkdown = (config: Config) => {
35
35
const allFilesWithInclude = await Promise . all (
36
36
allFiles . map ( async ( e ) => ( {
37
37
...e ,
38
- include : await includeToApply ( e ) ,
38
+ isIncluded : await includeToApply ( e ) ,
39
39
} ) ) ,
40
40
) ;
41
+
41
42
if ( config . debug ) {
42
43
consoleLogNextmd ( 'getStaticPaths:' , JSON . stringify ( allFilesWithInclude ) ) ;
43
44
}
44
- const files = allFilesWithInclude . filter ( ( e ) => e . include ) ;
45
+
46
+ const files = allFilesWithInclude . filter ( ( e ) => e . isIncluded ) ;
45
47
46
48
return {
47
49
paths : files . map ( ( e ) => ( {
@@ -77,8 +79,8 @@ const NextMarkdown = (config: Config) => {
77
79
. filter ( ( e ) => JSON . stringify ( nextmd ) === JSON . stringify ( absoluteToRelative ( parse ( e . path ) . dir ) . split ( '/' ) ) ) ; // get files in the same directory
78
80
79
81
const filesWanted = (
80
- await Promise . all ( filesInSameDir . map ( async ( e ) => ( { ...e , include : await includeToApply ( e ) } ) ) )
81
- ) . filter ( ( e ) => e . include ) ;
82
+ await Promise . all ( filesInSameDir . map ( async ( e ) => ( { ...e , isIncluded : await includeToApply ( e ) } ) ) )
83
+ ) . filter ( ( e ) => e . isIncluded ) ;
82
84
83
85
const filesData = await Promise . all (
84
86
filesWanted . map ( async ( e ) => ( {
You can’t perform that action at this time.
0 commit comments