We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d337e5 commit af26f53Copy full SHA for af26f53
utils/create-quickstarts-snapshot.ts
@@ -30,12 +30,12 @@ const main = () => {
30
// get all quickstart config.yml filepaths
31
const quickstarts = Quickstart.getAll();
32
33
- const quickstartMutationVariables = quickstarts.map((qs) =>
34
- qs.getMutationVariables(true)
35
- );
+ quickstarts.map(async (qs) => {
+ saveQuickstartMutationVariable(await qs.getMutationVariables(true))
+ });
36
37
- // save the variables as a JSON file in the `/snapshots` directory
38
- quickstartMutationVariables.forEach(saveQuickstartMutationVariable);
39
};
40
41
-main();
+if (require.main === module) {
+ main();
+}
0 commit comments