@biuxiu/codegen 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/gen-type.js CHANGED
@@ -36,9 +36,11 @@ const genLuaTypes = async (path) => {
36
36
  readPath: (0, import_path.resolve)(__dirname, `../sources/${t}-type.txt`)
37
37
  }));
38
38
  moveList.forEach((m) => {
39
- (0, import_promises.readFile)(m.readPath, "utf-8").then((content) => {
40
- (0, import_promises.writeFile)(m.writePath, content);
41
- });
39
+ if (!(0, import_fs.existsSync)(m.writePath)) {
40
+ (0, import_promises.readFile)(m.readPath, "utf-8").then((content) => {
41
+ (0, import_promises.writeFile)(m.writePath, content);
42
+ });
43
+ }
42
44
  });
43
45
  const settingPath = (0, import_path.join)(vscodePath, "settings.json");
44
46
  if ((0, import_fs.existsSync)(settingPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biuxiu/codegen",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "代码生成工具",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/pkg/README.md DELETED
@@ -1,11 +0,0 @@
1
- # lua codegen
2
-
3
- ### 使用lua+nodejs实现项目代码生成功能
4
-
5
- - 初始化项目
6
- ```sh
7
- # 安装依赖
8
- pnpm i
9
- # 初始化模板类型信息
10
- pnpm template-init
11
- ```