@rspress/plugin-sitemap 2.0.0-beta.35 → 2.0.0-rc.0
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 +2 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -33,7 +33,8 @@ function pluginSitemap(options) {
|
|
|
33
33
|
},
|
|
34
34
|
async afterBuild (config, isProd) {
|
|
35
35
|
if (isProd) {
|
|
36
|
-
const
|
|
36
|
+
const distPathRoot = 'string' == typeof config.builderConfig?.output?.distPath ? config.builderConfig?.output?.distPath : config.builderConfig?.output?.distPath?.root;
|
|
37
|
+
const configPath = config.outDir || distPathRoot;
|
|
37
38
|
let outputPath = `./${configPath || 'doc_build'}/sitemap.xml`;
|
|
38
39
|
if (isAbsolute(configPath || '')) outputPath = `${configPath}/sitemap.xml`;
|
|
39
40
|
await mkdir(dirname(outputPath), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-sitemap",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.0",
|
|
4
4
|
"description": "A plugin for rspress to generate sitemap.xml",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"static"
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@microsoft/api-extractor": "^7.
|
|
28
|
-
"@rslib/core": "0.
|
|
27
|
+
"@microsoft/api-extractor": "^7.54.0",
|
|
28
|
+
"@rslib/core": "0.16.1",
|
|
29
29
|
"rsbuild-plugin-publint": "^0.3.3",
|
|
30
30
|
"@rspress/config": "1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@rspress/core": "^2.0.0-
|
|
33
|
+
"@rspress/core": "^2.0.0-rc.0"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=18.0.0"
|