Skip to content

Commit

Permalink
Use file arch to compile file source
Browse files Browse the repository at this point in the history
Bump pkg version
  • Loading branch information
barbatus committed Mar 1, 2016
1 parent 77e8a7c commit 4cac0d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
@@ -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'
});

Expand Down
4 changes: 4 additions & 0 deletions tests/server/unit/input-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ InputFile = class InputFile {
addJavaScript(result) {
this.result = result;
}

getArch() {
return 'os';
}
}

ConfigFile = class ConfigFile extends InputFile {
Expand Down
4 changes: 3 additions & 1 deletion typescript-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cac0d7

Please sign in to comment.