1
0
mirror of synced 2025-12-22 11:26:57 -05:00
Files
docs/script/sync-search-indices.js
Grace Park d3d1902414 Merge pull request #20017 from github/upgrade-esm
Enforce and Move to Top Level require
2021-06-22 11:27:48 -07:00

23 lines
551 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]
const searchSync = require('./search/sync')
require('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)
}