enhance(dev): frontendの検索インデックス作成を単独のコマンドで行えるように (#15653)

This commit is contained in:
かっこかり
2025-03-12 14:37:57 +09:00
committed by GitHub
parent a369721791
commit e594fb0037
7 changed files with 55 additions and 19 deletions

View File

@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { searchIndexes } from '../vite.config.js';
import { generateSearchIndex } from '../lib/vite-plugin-create-search-index.js';
async function main() {
for (const searchIndex of searchIndexes) {
await generateSearchIndex(searchIndex);
}
}
main();