Skip to content

Commit 8854697

Browse files
committed
Fixed build error
1 parent cb16b27 commit 8854697

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build_lualib.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ compile([
1818
...glob.sync("./src/lualib/*.ts"),
1919
]);
2020

21-
fs.unlinkSync(bundlePath);
21+
if (fs.existsSync(bundlePath)) {
22+
fs.unlinkSync(bundlePath);
23+
}
2224

2325
concat(glob.sync("./dist/lualib/*.lua"), bundlePath);

0 commit comments

Comments
 (0)