From 52b7b2317607af9598938e0a624f0d08877a72f0 Mon Sep 17 00:00:00 2001 From: xyny Date: Fri, 26 Jul 2024 15:59:01 +0300 Subject: [PATCH] chore: switch to using modules.json generated on the site --- fetchModuleSchemas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetchModuleSchemas.js b/fetchModuleSchemas.js index cdfb38b..d291cf2 100644 --- a/fetchModuleSchemas.js +++ b/fetchModuleSchemas.js @@ -4,7 +4,7 @@ import fs from "node:fs" const modulesDir = "./src-tsp/modules" -const res = await fetch("https://raw.githubusercontent.com/blue-build/modules/main/modules.json") +const res = await fetch("https://blue-build.org/modules.json") const modules = await res.json() let moduleImports = [] @@ -14,7 +14,7 @@ fs.existsSync(modulesDir) && fs.rmSync(modulesDir, { recursive: true }); fs.mkdirSync(modulesDir) for (const module of modules) { - const res = await fetch(module) + const res = await fetch(module.yml) const moduleYml = parse(await res.text()) if (moduleYml.typespec) { const res = await fetch(moduleYml.typespec)