aboutsummaryrefslogtreecommitdiff
path: root/modding/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'modding/compiler.js')
-rw-r--r--modding/compiler.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/modding/compiler.js b/modding/compiler.js
index 240c9a9..693a1e3 100644
--- a/modding/compiler.js
+++ b/modding/compiler.js
@@ -1,17 +1,17 @@
-class BuildError extends Error {
- constructor(orig, ...params) {
- super(...params);
- this.name = "BuildError";
- this.stack = this.stack + "\n" + orig.stack;
- }
-}
-
-const tsbuild = require('../typescript/builder');
-
-for (file of importedTypeScriptFiles) {
- try {
- tsbuild(file.file, homedir + "/.kartik/build/" + file.output);
- } catch (e) {
- throw new BuildError(e, "Error while building " + file.file + " from package " + file.pkg)
- }
+class BuildError extends Error {
+ constructor(orig, ...params) {
+ super(...params);
+ this.name = "BuildError";
+ this.stack = this.stack + "\n" + orig.stack;
+ }
+}
+
+const tsbuild = require('../typescript/builder');
+
+for (file of importedTypeScriptFiles) {
+ try {
+ tsbuild(file.file, homedir + "/.kartik/build/" + file.output);
+ } catch (e) {
+ throw new BuildError(e, "Error while building " + file.file + " from package " + file.pkg)
+ }
} \ No newline at end of file