File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ async function processDocs(driver, project) {
45
45
console . log ( `Processing ${ project } for versions: ${ versionsToProcess } ` )
46
46
47
47
await versionsToProcess
48
+ . filter ( version => filterMissingRevs ( version , project ) )
48
49
. map ( version => readIndexFileForVersion ( version , project ) )
49
50
// Fetch all public modules and public classes
50
51
. map ( versionIndexObject =>
@@ -68,6 +69,17 @@ async function processDocs(driver, project) {
68
69
}
69
70
}
70
71
72
+ function filterMissingRevs ( version , libName ) {
73
+ const emberVersionJSONPath = `./tmp/rev-index/${ libName } -${ version } .json`
74
+ let isIncluded = true
75
+ try {
76
+ readJsonSync ( emberVersionJSONPath )
77
+ } catch ( e ) {
78
+ isIncluded = false
79
+ }
80
+ return isIncluded
81
+ }
82
+
71
83
function readIndexFileForVersion ( version , libName ) {
72
84
const emberVersionJSONPath = `./tmp/rev-index/${ libName } -${ version } .json`
73
85
console . debug ( `OPENING:: ${ emberVersionJSONPath } ` )
You can’t perform that action at this time.
0 commit comments