From 053a5e9bd7d4e55e608d032ab67e3882b53d0857 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 7 Sep 2021 11:53:32 -0400 Subject: [PATCH] generate at build time --- scripts/build.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.js b/scripts/build.js index 959f5bf3..edb9771a 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(); });