@vuepress-plume/plugin-search 1.0.0-rc.153 → 1.0.0-rc.154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/node/index.js CHANGED
@@ -326,9 +326,10 @@ function searchPlugin({ locales = {}, isSearchable,...searchOptions } = {}) {
326
326
  searchOptions
327
327
  }),
328
328
  onWatched: (app$1, watchers) => {
329
- const searchIndexWatcher = chokidar.watch("pages/**/*.js", {
329
+ const searchIndexWatcher = chokidar.watch("pages", {
330
330
  cwd: app$1.dir.temp(),
331
- ignoreInitial: true
331
+ ignoreInitial: true,
332
+ ignored: (filepath, stats) => Boolean(stats?.isFile()) && !filepath.endsWith(".js")
332
333
  });
333
334
  searchIndexWatcher.on("add", (filepath) => {
334
335
  onSearchIndexUpdated(filepath, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vuepress-plume/plugin-search",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.153",
4
+ "version": "1.0.0-rc.154",
5
5
  "description": "The Plugin for VuePress 2 - local search",
6
6
  "author": "pengzhanbo <volodymyr@foxmail.com>",
7
7
  "license": "MIT",
@@ -34,15 +34,15 @@
34
34
  "vuepress": "2.0.0-rc.23"
35
35
  },
36
36
  "dependencies": {
37
- "@vuepress/helper": "2.0.0-rc.108",
38
- "@vueuse/core": "^13.3.0",
39
- "@vueuse/integrations": "^13.3.0",
40
- "chokidar": "3.6.0",
37
+ "@vuepress/helper": "2.0.0-rc.110",
38
+ "@vueuse/core": "^13.4.0",
39
+ "@vueuse/integrations": "^13.4.0",
40
+ "chokidar": "4.0.3",
41
41
  "focus-trap": "^7.6.5",
42
42
  "mark.js": "^8.11.1",
43
43
  "minisearch": "^7.1.2",
44
44
  "p-map": "^7.0.3",
45
- "vue": "^3.5.16"
45
+ "vue": "^3.5.17"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"