diff --git a/scripts/build.js b/scripts/build.js index 959f5bf3c..edb9771a1 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -22,6 +22,7 @@ del.sync('./dist'); try { if (!dev) execSync('tsc', { stdio: 'inherit' }); // for type declarations execSync('node scripts/make-metadata.js', { stdio: 'inherit' }); + execSync('node scripts/make-search.js', { stdio: 'inherit' }); execSync('node scripts/make-vscode-data.js', { stdio: 'inherit' }); execSync('node scripts/make-css.js', { stdio: 'inherit' }); execSync('node scripts/make-icons.js', { stdio: 'inherit' }); @@ -124,6 +125,7 @@ try { // Reload without rebuilding when the docs change bs.watch(['docs/**/*']).on('change', filename => { console.log(`Docs file changed - ${filename}`); + execSync('node scripts/make-search.js', { stdio: 'inherit' }); bs.reload(); });