docs: update contributors

This commit is contained in:
Anthony Fu 2022-01-14 16:19:34 +08:00
parent 84f12d74fa
commit d3cd7a2fbc
3 changed files with 27 additions and 15 deletions

View File

@ -1,21 +1,32 @@
[
"antfu",
"sheremet-va",
"patak-dev",
"Aslemammad",
"sheremet-va",
"edimitchel",
"tony-go",
"userquin",
"wtchnm",
"horacioh",
"dominikg",
"hannoeru",
"aleclarson",
"david-crespo",
"innocenzi",
"cyco130",
"IanVS",
"ydcjeff",
"DerYeger",
"Demivan",
"edimitchel",
"Saul-Mirone",
"11joselu",
"wheatjs"
"dammy001",
"tony-go",
"wtchnm",
"cexbrayat",
"dominikg",
"mitchelvanbever",
"tigerabrodi",
"horacioh",
"LeonardSSH",
"sachinraja",
"cawa-93",
"Monkatraz",
"sudongyuer",
"hannoeru",
"JakeGinnivan",
"JoostK",
"PuruVJ",
"aleclarson",
"CyriacBr",
"christianhg"
]

View File

@ -12,6 +12,7 @@
"docs:build": "npm -C docs run build",
"docs:serve": "npm -C docs run serve",
"docs:examples": "esmo scripts/update-examples.ts",
"docs:contributors": "esmo scripts/update-contributors.ts",
"postinstall": "pnpm -C examples/vue2 i",
"lint": "eslint --ext .js,.vue,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.vue,.ts,.tsx . --fix",

View File

@ -16,7 +16,7 @@ async function fetchContributors() {
'content-type': 'application/json',
},
})
const data = await res.json() as Contributor[]
const data = await res.json() as Contributor[] || []
collaborators.push(...data.map(i => i.login))
return collaborators
}