pug-site-core 2.0.18 → 2.0.19

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 +0 -7
  2. package/package.json +2 -2
package/lib/generate.js CHANGED
@@ -282,13 +282,6 @@ export async function fetchDataToJsonFile(args) {
282
282
  await checkData(data, language, obj.getDataFn);
283
283
  let outPutPath = obj.outPutPath.split("/").join(pathSymbol);
284
284
  if (Array.isArray(data)) {
285
- await fse.remove(
286
- paths.resolveRoot(
287
- "jsonData",
288
- language,
289
- ...outPutPath.split(pathSymbol).slice(0, -1)
290
- )
291
- );
292
285
  let name = outPutPath.split(pathSymbol).pop().replace(/\..*$/, "");
293
286
  const regex = /^\[.+\]$/;
294
287
  if (regex.test(name)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -46,7 +46,7 @@
46
46
  "ws": "^8.18.0"
47
47
  },
48
48
  "license": "ISC",
49
- "description": "增加本地server的代理功能",
49
+ "description": "修复错误的删除文件问题",
50
50
  "files": [
51
51
  "lib/",
52
52
  "index.js"