1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/script/search/lunr-get-index-names.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

11 lines
315 B
JavaScript

#!/usr/bin/env node
import { fileURLToPath } from 'url'
import path from 'path'
import xFs from 'fs'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const fs = xFs.promises
export default async function getIndexNames() {
return await fs.readdir(path.join(__dirname, '../../lib/search/indexes'))
}