Skip to content

Commit e626a50

Browse files
committed
Replaced concat witf fs functions
1 parent 8854697 commit e626a50

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

build_lualib.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ if (fs.existsSync(bundlePath)) {
2222
fs.unlinkSync(bundlePath);
2323
}
2424

25-
concat(glob.sync("./dist/lualib/*.lua"), bundlePath);
25+
let bundle = "";
26+
27+
glob.sync("./dist/lualib/*.lua").forEach(fileName => bundle += fs.readFileSync(fileName));
28+
29+
fs.writeFileSync(bundlePath, bundle);

package-lock.json

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"alsatian": "^2.2.1",
5252
"circular-json": "^0.5.5",
5353
"codecov": "3.0.2",
54-
"concat": "^1.0.3",
5554
"deep-equal": "^1.0.1",
5655
"fengari": "^0.1.2",
5756
"glob": "^7.1.2",

0 commit comments

Comments
 (0)