diff --git a/package.js b/package.js index 8e1e43c..b04da40 100644 --- a/package.js +++ b/package.js @@ -1,13 +1,13 @@ Package.describe({ name: 'barbatus:typescript-compiler', - version: '0.5.0-beta.4', + version: '0.5.0-beta.5', summary: 'TypeScript Compiler for Meteor', git: 'https://github.com/barbatus/ts-compilers', documentation: 'README.md' }); Npm.depends({ - 'meteor-typescript': '0.6.0-beta.1', + 'meteor-typescript': '0.6.0-beta.2', 'async': '1.4.0' }); diff --git a/tests/server/unit/input-file.js b/tests/server/unit/input-file.js index 0e1e527..2e76a21 100644 --- a/tests/server/unit/input-file.js +++ b/tests/server/unit/input-file.js @@ -40,6 +40,10 @@ InputFile = class InputFile { addJavaScript(result) { this.result = result; } + + getArch() { + return 'os'; + } } ConfigFile = class ConfigFile extends InputFile { diff --git a/typescript-compiler.js b/typescript-compiler.js index 1a0b913..5effc72 100644 --- a/typescript-compiler.js +++ b/typescript-compiler.js @@ -58,11 +58,13 @@ TypeScriptCompiler = class TypeScriptCompiler { let filePath = this.getExtendedPath(inputFile); let typings = this.tsconfig ? this.tsconfig.typings : []; let moduleName = this.getFileModuleName(inputFile, compilerOptions); + let arch = inputFile.getArch(); let tsOptions = { compilerOptions, moduleName, filePath, - typings + typings, + arch }; let error = null;