pug-site-core 2.0.7 → 2.0.8

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.
Files changed (2) hide show
  1. package/lib/generate.js +1 -3
  2. package/package.json +2 -2
package/lib/generate.js CHANGED
@@ -392,9 +392,7 @@ export async function buildFn() {
392
392
  let totalCommonData = {};
393
393
  totalCommonData.langCommon = config.commonData;
394
394
  await async.each(config.languageList, async (lang) => {
395
- let commonData = await fse.readJSON(
396
- paths.resolveRoot("jsonData", lang, "_common.json")
397
- );
395
+ let commonData = await (await import(paths.getData))["get_common_data"](lang);
398
396
  totalCommonData[lang] = commonData;
399
397
  });
400
398
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -37,7 +37,7 @@
37
37
  "axios": "^1.7.7"
38
38
  },
39
39
  "license": "ISC",
40
- "description": "增加获取数据的log",
40
+ "description": "修改打包方法",
41
41
  "files": [
42
42
  "lib/",
43
43
  "index.js"