blob: 693a1e3e0d98a1e490a4a24fa83d748420b2beaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}
}
|