@zpress/ui 0.3.0 → 0.3.1
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.d.ts +1 -0
- package/dist/index.mjs +7 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function createRspressConfig(options: CreateRspressConfigOptions)
|
|
|
12
12
|
declare interface CreateRspressConfigOptions {
|
|
13
13
|
readonly config: ZpressConfig;
|
|
14
14
|
readonly paths: Paths;
|
|
15
|
+
readonly logLevel?: 'info' | 'warn' | 'error' | 'silent';
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ function detectGitBranch() {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
function createRspressConfig(options) {
|
|
28
|
-
const { config, paths } = options;
|
|
28
|
+
const { config, paths, logLevel } = options;
|
|
29
29
|
const sidebar = loadGenerated(paths.contentDir, 'sidebar.json', {});
|
|
30
30
|
const nav = loadGenerated(paths.contentDir, 'nav.json', []);
|
|
31
31
|
const workspaces = loadGenerated(paths.contentDir, 'workspaces.json', []);
|
|
@@ -47,6 +47,12 @@ function createRspressConfig(options) {
|
|
|
47
47
|
zpressPlugin()
|
|
48
48
|
],
|
|
49
49
|
builderConfig: {
|
|
50
|
+
...(()=>{
|
|
51
|
+
if (logLevel) return {
|
|
52
|
+
logLevel
|
|
53
|
+
};
|
|
54
|
+
return {};
|
|
55
|
+
})(),
|
|
50
56
|
resolve: {
|
|
51
57
|
alias: {
|
|
52
58
|
'@zpress/ui/theme': node_path.resolve(import.meta.dirname, 'theme', 'index.tsx')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zpress/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Rspress plugin, theme components, and styles for zpress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@iconify-json/vscode-icons": "^1.2.45",
|
|
53
53
|
"@iconify/react": "^6.0.2",
|
|
54
54
|
"ts-pattern": "^5.9.0",
|
|
55
|
-
"@zpress/core": "0.
|
|
55
|
+
"@zpress/core": "0.4.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@rslib/core": "^0.20.0",
|