pug-site-core 3.0.8 → 3.0.10
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/lib/generate.js +3 -1
- package/lib/translate.js +1 -0
- package/package.json +2 -2
package/lib/generate.js
CHANGED
|
@@ -448,7 +448,9 @@ export async function buildFn() {
|
|
|
448
448
|
let totalCommonData = {};
|
|
449
449
|
totalCommonData.langCommon = config.commonData;
|
|
450
450
|
await async.each(config.languageList, async (lang) => {
|
|
451
|
-
let commonData = await
|
|
451
|
+
let commonData = await fse.readJSON(
|
|
452
|
+
paths.resolveRoot("jsonData", lang, "_common.json")
|
|
453
|
+
);
|
|
452
454
|
totalCommonData[lang] = commonData;
|
|
453
455
|
});
|
|
454
456
|
|
package/lib/translate.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pug-site-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"ws": "^8.18.0"
|
|
53
53
|
},
|
|
54
54
|
"license": "ISC",
|
|
55
|
-
"description": "
|
|
55
|
+
"description": "修复语言数据打包失败的问题",
|
|
56
56
|
"files": [
|
|
57
57
|
"lib/",
|
|
58
58
|
"index.js"
|