diff --git a/.gitignore b/.gitignore index 09ab39f9..d3890f25 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,6 @@ auth/js/auth.js.map .sass-cache/ .idea/ -.package-lock.json \ No newline at end of file +.package-lock.json + +TeaSpeakUI.tar.gz diff --git a/build/dtsgen/index.ts b/build/dtsgen/index.ts index a09f765a..8147d1a7 100644 --- a/build/dtsgen/index.ts +++ b/build/dtsgen/index.ts @@ -1,9 +1,10 @@ -import {readFileSync, writeFileSync} from "fs"; +import {readFileSync, writeFileSync, mkdir} from "fs"; import {isArray, isString} from "util"; import * as ts from "typescript"; import * as decl from "./declarator"; import * as glob from "glob"; import * as path from "path"; +import * as mkdirp from "mkdirp"; let source_files: string[] = []; let exclude_files: string[] = []; @@ -87,4 +88,8 @@ source_files.forEach(file => { }); }); -writeFileSync(base_path + "/" + target_file, result); \ No newline at end of file +mkdirp(path.normalize(path.dirname(base_path + "/" + target_file)), error => { + if(error) + throw error; + writeFileSync(base_path + "/" + target_file, result); +}); \ No newline at end of file diff --git a/shared/tsconfig/dtsconfig.json b/shared/tsconfig/dtsconfig.json index 35f45234..50cc1d6e 100644 --- a/shared/tsconfig/dtsconfig.json +++ b/shared/tsconfig/dtsconfig.json @@ -6,4 +6,4 @@ "../js/workers/**/*.ts" ], "target_file": "../declarations/exports.d.ts" -} \ No newline at end of file +}