1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/script/sync-search-indices.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

23 lines
547 B
JavaScript
Executable File

#!/usr/bin/env node
import searchSync from './search/sync.js'
import 'make-promises-safe'
// [start-readme]
//
// This script is run automatically via GitHub Actions on every push to `main` to generate searchable data.
// It can also be run manually. For more info see [contributing/search.md](contributing/search.md)
//
// [end-readme]
main()
async function main() {
const sync = searchSync
const opts = {
dryRun: 'DRY_RUN' in process.env,
language: process.env.LANGUAGE,
version: process.env.VERSION,
}
await sync(opts)
}