almighty-tool 0.0.26 → 0.0.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "almighty-tool",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Almighty Tool",
5
5
  "author": "happy",
6
6
  "private": false,
@@ -68,7 +68,10 @@ const codeUtil = {
68
68
  const template = fs.readFileSync(templatePath, 'utf-8');
69
69
 
70
70
  // 使用变量渲染模板
71
- const result = mustache.render(template, variables);
71
+ const result = mustache
72
+ .render(template, variables)
73
+ .replace(/{/g, '{')
74
+ .replace(/}/g, '}');
72
75
 
73
76
  // 写入目标文件
74
77
  fs.writeFileSync(targetPath, result, 'utf-8');