tiktok / sparo

Sparo optimizes performance of Git operations for your large frontend monorepo.
https://tiktok.github.io/sparo/
MIT License
162 stars 8 forks source link

fix: website build #87

Closed chengcyber closed 2 months ago

chengcyber commented 2 months ago

Basic Checks

Have you run rush change for this change?

If No, please run rush change before, this is necessary.

If adding a new feature, the PR's description includes:

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

Summary

Patch lunr.utils.warn to use console.log instead of console.warn

Detail

img_v3_02e7_60738ba2-2453-4e65-bcf2-916e3b7f40hu

Lunr prints error message with console.warn which print on stderr. The messages are treated as error message by rush build

After patching the code of lunr, it uses console.log to print the message.

How to test it

Local