Skip to content

Commit

Permalink
Merge pull request #87 from tiktok/fix-website-build
Browse files Browse the repository at this point in the history
fix: website build
  • Loading branch information
chengcyber authored Aug 29, 2024
2 parents 3cb8b5e + 2c021b4 commit cd624c8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/config/rush/pnpm-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
*
* PNPM documentation: https://pnpm.io/package_json#pnpmpatcheddependencies
*/
"globalPatchedDependencies": {},
"globalPatchedDependencies": { "[email protected]": "patches/[email protected]" },

/**
* (USE AT YOUR OWN RISK) This is a free-form property bag that will be copied into
Expand Down
12 changes: 9 additions & 3 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions common/pnpm-patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/.npmignore b/.npmignore
deleted file mode 100644
index dee86324b64e82374e8a5bc6bee027bbec12022c..0000000000000000000000000000000000000000
diff --git a/lunr.js b/lunr.js
index 6aa370fbcb7b1b94eb8a19c433a5038352183b2a..a1bbd049d275fbdca3cf904f494a86ae1f305a00 100644
--- a/lunr.js
+++ b/lunr.js
@@ -76,8 +76,8 @@ lunr.utils = {}
lunr.utils.warn = (function (global) {
/* eslint-disable no-console */
return function (message) {
- if (global.console && console.warn) {
- console.warn(message)
+ if (global.console && console.log) {
+ console.log('[WARN]', message)
}
}
/* eslint-enable no-console */

0 comments on commit cd624c8

Please sign in to comment.