dumi 2.4.12 → 2.4.14
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.
|
Binary file
|
|
@@ -105,11 +105,8 @@ export async function getFullDemos() {
|
|
|
105
105
|
// expand context for omit ext
|
|
106
106
|
expandDemoContext(demo.context);
|
|
107
107
|
});
|
|
108
|
-
|
|
109
|
-
return
|
|
110
|
-
...total,
|
|
111
|
-
...demos,
|
|
112
|
-
};
|
|
108
|
+
Object.assign(total, demos);
|
|
109
|
+
return total;
|
|
113
110
|
}, {}),
|
|
114
111
|
);
|
|
115
112
|
}
|
|
@@ -184,10 +181,10 @@ export async function getFullRoutesMeta(): Promise<Record<string, IRouteMeta>> {
|
|
|
184
181
|
})),
|
|
185
182
|
).then((ret) =>
|
|
186
183
|
ret.reduce(
|
|
187
|
-
(total, { id, meta }) =>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
184
|
+
(total, { id, meta }) => {
|
|
185
|
+
total[id] = meta;
|
|
186
|
+
return total;
|
|
187
|
+
},
|
|
191
188
|
{},
|
|
192
189
|
),
|
|
193
190
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.14",
|
|
4
4
|
"description": "📖 Documentation Generator of React Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"generator",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@ant-design/icons-svg": "^4.4.2",
|
|
63
63
|
"@makotot/ghostui": "^2.0.0",
|
|
64
64
|
"@stackblitz/sdk": "^1.9.0",
|
|
65
|
-
"@swc/core": "1.
|
|
65
|
+
"@swc/core": "1.9.2",
|
|
66
66
|
"@types/hast": "^2.3.5",
|
|
67
67
|
"@types/mdast": "^3.0.12",
|
|
68
68
|
"@umijs/bundler-utils": "^4.3.0",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"url": "^0.11.1",
|
|
127
127
|
"v8-compile-cache": "2.3.0",
|
|
128
128
|
"vfile": "^5.3.7",
|
|
129
|
-
"dumi-assets-types": "2.
|
|
129
|
+
"dumi-assets-types": "2.4.14"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@commitlint/cli": "^17.6.7",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"stylelint": "^15.10.2",
|
|
162
162
|
"ts-node": "^10.9.1",
|
|
163
163
|
"typescript": "~5.0.4",
|
|
164
|
-
"vitest": "^0.
|
|
164
|
+
"vitest": "^2.0.0",
|
|
165
165
|
"zx": "^7.2.3",
|
|
166
166
|
"dumi-theme-mobile": "2.3.5"
|
|
167
167
|
},
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
],
|
|
179
179
|
"scripts": {
|
|
180
180
|
"build": "father build && npm run build:crates",
|
|
181
|
-
"build:crates": "cargo build --target wasm32-
|
|
181
|
+
"build:crates": "cargo build --target wasm32-wasip1 -r --out-dir compiled/crates -Z unstable-options",
|
|
182
182
|
"build:deps": "node scripts/pre-bundle-worker.js && father prebundle",
|
|
183
183
|
"build:suites": "pnpm run --filter=\"./suites/**\" build",
|
|
184
184
|
"dev": "father dev",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
191
191
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
192
192
|
"release": "esno scripts/release.ts",
|
|
193
|
-
"test": "vitest",
|
|
193
|
+
"test": "vitest run",
|
|
194
194
|
"vercel:build": "npm run docs:build",
|
|
195
195
|
"vercel:install": "./scripts/vercel-install.sh"
|
|
196
196
|
}
|