diff --git a/package.json b/package.json index afab04c..3073d08 100644 --- a/package.json +++ b/package.json @@ -13,5 +13,10 @@ "@playwright/test": "^1.40.0", "@types/node": "^20.8.10", "serve": "^14.2.1" + }, + "pnpm": { + "patchedDependencies": { + "flexsearch@0.7.41": "patches/flexsearch@0.7.41.patch" + } } } diff --git a/packages/next/package.json b/packages/next/package.json index e29287d..ca19303 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -9,7 +9,7 @@ "test": "playwright test" }, "dependencies": { - "@reactuses/core": "^4.0.7", + "@reactuses/core": "4.0.10", "@types/node": "20.6.3", "@types/react": "18.2.22", "@types/react-dom": "18.2.7", diff --git a/patches/flexsearch@0.7.41.patch b/patches/flexsearch@0.7.41.patch new file mode 100644 index 0000000..9a63084 --- /dev/null +++ b/patches/flexsearch@0.7.41.patch @@ -0,0 +1,15 @@ +diff --git a/package.json b/package.json +index 5819f2fe2253489534ba64143b8b4c3f9b5870bf..30b29b8d3f19a12d6ec618446e023d0b521a6a28 100644 +--- a/package.json ++++ b/package.json +@@ -29,10 +29,6 @@ + }, + "main": "dist/flexsearch.bundle.min.js", + "module": "dist/flexsearch.bundle.module.min.js", +- "browser": { +- "dist/flexsearch.bundle.min.js": "dist/flexsearch.bundle.min.js", +- "dist/flexsearch.bundle.module.min.js": "dist/flexsearch.bundle.module.min.js" +- }, + "scripts": { + "build": "npm run copy && npm run build:bundle", + "build:bundle": "node task/build RELEASE=bundle DEBUG=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false",