瀏覽代碼

Update index.js

xiaoyang0346 1 周之前
父節點
當前提交
307f1cc1c4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      index.js

+ 1 - 0
index.js

@@ -1133,6 +1133,7 @@ function copy_s_to_proto() {
 function copy_proto_to_c() {
 	outDir = path.sharedPath;
 	try {
+		fse.emptyDirSync(outDir);
 		fse.copySync('./s_to_proto/shared/', outDir);
 		console.log('目录拷贝完成');
 	} catch (err) {