chore: switch to using modules.json generated on the site
This commit is contained in:
parent
cee6799197
commit
52b7b23176
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue