1
0
mirror of synced 2025-12-20 10:28:40 -05:00
Files
docs/script/sync-search-indices.js
Kevin Heis b29e37318a Remove import x statements (#20594)
* Clear out most import x

* Update rimraf use

* Move up readme blocks in scripts
2021-07-29 20:28:30 +00:00

24 lines
548 B
JavaScript
Executable File

#!/usr/bin/env node
// [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]
import searchSync from './search/sync.js'
import 'make-promises-safe'
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)
}