Skip to content

Commit 4cac0d7

Browse files
committed
Use file arch to compile file source
Bump pkg version
1 parent 77e8a7c commit 4cac0d7

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Package.describe({
22
name: 'barbatus:typescript-compiler',
3-
version: '0.5.0-beta.4',
3+
version: '0.5.0-beta.5',
44
summary: 'TypeScript Compiler for Meteor',
55
git: 'https://github.com/barbatus/ts-compilers',
66
documentation: 'README.md'
77
});
88

99
Npm.depends({
10-
'meteor-typescript': '0.6.0-beta.1',
10+
'meteor-typescript': '0.6.0-beta.2',
1111
'async': '1.4.0'
1212
});
1313

tests/server/unit/input-file.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ InputFile = class InputFile {
4040
addJavaScript(result) {
4141
this.result = result;
4242
}
43+
44+
getArch() {
45+
return 'os';
46+
}
4347
}
4448

4549
ConfigFile = class ConfigFile extends InputFile {

typescript-compiler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ TypeScriptCompiler = class TypeScriptCompiler {
5858
let filePath = this.getExtendedPath(inputFile);
5959
let typings = this.tsconfig ? this.tsconfig.typings : [];
6060
let moduleName = this.getFileModuleName(inputFile, compilerOptions);
61+
let arch = inputFile.getArch();
6162
let tsOptions = {
6263
compilerOptions,
6364
moduleName,
6465
filePath,
65-
typings
66+
typings,
67+
arch
6668
};
6769

6870
let error = null;

0 commit comments

Comments
 (0)