@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.
- package/dist/index.js +6 -13
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
- package/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/compiled/fast-glob/index.js +0 -37
- package/compiled/fast-glob/license +0 -21
- package/compiled/fast-glob/out/index.d.ts +0 -27
- package/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
- package/compiled/fast-glob/out/settings.d.ts +0 -164
- package/compiled/fast-glob/out/types/index.d.ts +0 -31
- package/compiled/fast-glob/package.json +0 -1
- package/compiled/globby/index.d.ts +0 -186
- package/compiled/globby/index.js +0 -1
- package/compiled/globby/license +0 -9
- 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.
|
|
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
|
|
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
|
|
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) => {
|