@rspress/core 1.40.1 → 1.40.3-cannary-20250126

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.
Files changed (30) hide show
  1. package/dist/index.js +6 -13
  2. package/dist/index.js.map +1 -1
  3. package/package.json +9 -8
  4. package/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  5. package/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  6. package/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  7. package/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  8. package/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  9. package/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  10. package/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  11. package/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  12. package/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  13. package/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  14. package/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  15. package/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  16. package/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  17. package/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  18. package/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  19. package/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  20. package/compiled/fast-glob/index.js +0 -37
  21. package/compiled/fast-glob/license +0 -21
  22. package/compiled/fast-glob/out/index.d.ts +0 -27
  23. package/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  24. package/compiled/fast-glob/out/settings.d.ts +0 -164
  25. package/compiled/fast-glob/out/types/index.d.ts +0 -31
  26. package/compiled/fast-glob/package.json +0 -1
  27. package/compiled/globby/index.d.ts +0 -186
  28. package/compiled/globby/index.js +0 -1
  29. package/compiled/globby/license +0 -9
  30. package/compiled/globby/package.json +0 -1
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ var require_package = __commonJS({
66
66
  "package.json"(exports, module) {
67
67
  module.exports = {
68
68
  name: "@rspress/core",
69
- version: "1.40.1",
69
+ version: "1.40.3-cannary-20250126",
70
70
  description: "The Rspress Documentation Framework",
71
71
  bugs: "https://github.com/web-infra-dev/rspress/issues",
72
72
  repository: {
@@ -154,6 +154,7 @@ var require_package = __commonJS({
154
154
  remark: "^14.0.3",
155
155
  "remark-gfm": "3.0.1",
156
156
  "rspack-plugin-virtual-module": "0.1.13",
157
+ tinyglobby: "^0.2.10",
157
158
  unified: "^10.1.2",
158
159
  "unist-util-visit": "^4.1.2",
159
160
  "unist-util-visit-children": "^3.0.0"
@@ -443,6 +444,7 @@ import {
443
444
  withBase
444
445
  } from "@rspress/shared";
445
446
  import fs3 from "@rspress/shared/fs-extra";
447
+ import { glob } from "tinyglobby";
446
448
 
447
449
  // src/node/utils/normalizePath.ts
448
450
  import os from "os";
@@ -702,12 +704,7 @@ var RouteService = class {
702
704
  }
703
705
  }
704
706
  async init() {
705
- const globby = (await import(
706
- // @ts-expect-error
707
- // eslint-disable-next-line node/file-extension-in-import
708
- "../compiled/globby/index.js"
709
- )).default;
710
- const files = (await globby([`**/*.{${__privateGet(this, _extensions).join(",")}}`, ...__privateGet(this, _include)], {
707
+ const files = (await glob([`**/*.{${__privateGet(this, _extensions).join(",")}}`, ...__privateGet(this, _include)], {
711
708
  cwd: __privateGet(this, _scanDir),
712
709
  absolute: true,
713
710
  ignore: [
@@ -1598,18 +1595,14 @@ function serveSearchIndexMiddleware(config) {
1598
1595
  // src/node/utils/detectCustomIcon.ts
1599
1596
  import { existsSync } from "fs";
1600
1597
  import path10 from "path";
1598
+ import { glob as glob2 } from "tinyglobby";
1601
1599
  var detectCustomIcon = async (customThemeDir) => {
1602
1600
  const assetsDir = path10.join(customThemeDir, "assets");
1603
1601
  const alias = {};
1604
1602
  if (!existsSync(assetsDir)) {
1605
1603
  return alias;
1606
1604
  }
1607
- const globby = (await import(
1608
- // @ts-expect-error
1609
- // eslint-disable-next-line node/file-extension-in-import
1610
- "../compiled/globby/index.js"
1611
- )).default;
1612
- const files = await globby("*.svg", {
1605
+ const files = await glob2("*.svg", {
1613
1606
  cwd: assetsDir
1614
1607
  });
1615
1608
  files.forEach((file) => {