mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: typo
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: 'Upload search indicies'
|
||||
description: 'Uploads the search indicies to a meilisearch database'
|
||||
name: 'Upload search indices'
|
||||
description: 'Uploads the search indices to a meilisearch database'
|
||||
runs:
|
||||
using: node20
|
||||
main: ../../dist/uploadSearchIndicies/index.js
|
||||
main: ../../dist/uploadSearchIndices/index.js
|
||||
|
||||
@@ -29,7 +29,7 @@ const client = new MeiliSearch({
|
||||
|
||||
try {
|
||||
console.log('Generating all indices...');
|
||||
const indicies = await generateAllIndices({
|
||||
const indices = await generateAllIndices({
|
||||
fetchPackageVersions: async (pkg) => {
|
||||
console.log(`Fetching versions for ${pkg}...`);
|
||||
const { rows } = await sql.execute('select version from documentation where name = ?', [pkg]);
|
||||
@@ -52,7 +52,7 @@ try {
|
||||
console.log('Generated all indices.');
|
||||
|
||||
console.log('Uploading indices...');
|
||||
for (const index of indicies) {
|
||||
for (const index of indices) {
|
||||
console.log(`Uploading ${index.index}...`);
|
||||
await client.index(index.index).addDocuments(index.data);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ export default createTsupConfig({
|
||||
'src/index.ts',
|
||||
'src/formatTag/index.ts',
|
||||
'src/uploadDocumentation/index.ts',
|
||||
'src/uploadSearchIndicies/index.ts',
|
||||
'src/uploadSearchIndices/index.ts',
|
||||
],
|
||||
dts: false,
|
||||
format: 'esm',
|
||||
|
||||
@@ -169,7 +169,7 @@ export async function generateAllIndices({
|
||||
fetchPackageVersionDocs = fetchVersionDocs,
|
||||
writeToFile = true,
|
||||
}) {
|
||||
const indicies: Record<any, any>[] = [];
|
||||
const indices: Record<any, any>[] = [];
|
||||
|
||||
for (const pkg of PACKAGES) {
|
||||
const versions = await fetchPackageVersions(pkg);
|
||||
@@ -183,10 +183,10 @@ export async function generateAllIndices({
|
||||
if (writeToFile) {
|
||||
await writeIndexToFileSystem(members, pkg, version);
|
||||
} else {
|
||||
indicies.push({ index: `${pkg}-${version.replaceAll('.', '-')}`, data: members });
|
||||
indices.push({ index: `${pkg}-${version.replaceAll('.', '-')}`, data: members });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return indicies;
|
||||
return indices;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user