pug-site-core 2.0.16 → 2.0.17

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 -1
  2. package/package.json +2 -2
package/lib/generate.js CHANGED
@@ -103,7 +103,7 @@ export async function generateGetDataFn() {
103
103
  try {
104
104
  const getDataPath = paths.resolveRoot("getData.js");
105
105
  const getDataFile = await fse.readFile(getDataPath, "utf8");
106
- const pagesPugFilePathArr = await getPagesPugFilePathArr(true);
106
+ const pagesPugFilePathArr = await getPagesPugFilePathArr();
107
107
 
108
108
  // 使用正则表达式检查init函数是否存在
109
109
  const initFunctionRegex = /export\s+async\s+function\s+init\s*\(\s*\)/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -45,7 +45,7 @@
45
45
  "imagemin-svgo": "^10.0.1"
46
46
  },
47
47
  "license": "ISC",
48
- "description": "修复带getData排除函数参数时无法删掉以前json文件问题、优化代码",
48
+ "description": "getFun生成函数时的bug修复",
49
49
  "files": [
50
50
  "lib/",
51
51
  "index.js"