From b6ed1980008e176bf6ca243b3e4d5d9c180cd612 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 20 May 2022 13:32:58 -0500 Subject: [PATCH] Fix saveKinds running for each list --- build-lists.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build-lists.js b/build-lists.js index 9518cf1..208d812 100644 --- a/build-lists.js +++ b/build-lists.js @@ -470,9 +470,6 @@ class BuildLists { throw new Error( `Files (${ fileCount }) don\'t match list count in ${ apiListDirectory }(${ this.lists[listOptions.name].size }).` ) } - - // Save kinds - await this.saveKinds() } // Save app lists to JSON @@ -525,10 +522,14 @@ class BuildLists { async build () { + // Pull in and layer data from all sources await this.buildLists() + // Save the data to respective files as lists await this.saveAppLists() + // Save kind lists + await this.saveKinds() // console.log('appList', appList)