File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,7 @@ async function transformProjectsDeep(projects, docs) {
79
79
return built
80
80
}
81
81
82
- export async function apiDocsProcessor (
83
- projects ,
84
- specificDocsVersion ,
85
- runClean ,
86
- ) {
82
+ export async function apiDocsProcessor ( projects , specificDocsVersion , runClean ) {
87
83
let filesToProcess = projects . map ( project => {
88
84
return `${ docsPath } /s3-docs/v${ specificDocsVersion } /${ project } -docs.json`
89
85
} )
@@ -107,7 +103,7 @@ export async function apiDocsProcessor(
107
103
availableVersions . push ( id . replace ( `${ project } -` , '' ) )
108
104
)
109
105
console . log ( { project, availableVersions } )
110
- fs . writeJsonSync ( projRevFile , projRevFileContent )
106
+ fs . writeJsonSync ( projRevFile , projRevFileContent , { spaces : 2 } )
111
107
} )
112
108
)
113
109
. then ( ( ) => {
@@ -124,7 +120,6 @@ function mergeById(arr1, arr2) {
124
120
if ( i < arr1 . length && ! seen . has ( arr1 [ i ] . id ) ) {
125
121
result . push ( arr1 [ i ] )
126
122
seen . add ( arr1 [ i ] . id )
127
-
128
123
}
129
124
if ( i < arr2 . length && ! seen . has ( arr2 [ i ] . id ) ) {
130
125
result . push ( arr2 [ i ] )
You can’t perform that action at this time.
0 commit comments