@biuxiu/codegen 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/gen-type.js +5 -3
- package/package.json +2 -2
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,
|
40
|
-
(0, import_promises.
|
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