The buildScripts/buildHighlightJs.mjs script currently performs a full repository clone and build of highlight.js every time it runs. This is inefficient when running buildAll multiple times.
The script should be optimized to:
- Check if the
dist/highlight directory already contains the expected files.
- If the files exist, skip the build process.
- Use
commander to add a -f, --force flag to bypass the check and enforce regeneration.
This will significantly speed up the build process for subsequent runs.
The
buildScripts/buildHighlightJs.mjsscript currently performs a full repository clone and build of highlight.js every time it runs. This is inefficient when runningbuildAllmultiple times.The script should be optimized to:
dist/highlightdirectory already contains the expected files.commanderto add a-f, --forceflag to bypass the check and enforce regeneration.This will significantly speed up the build process for subsequent runs.