I have a typescript module split over two files in Webstorm. I want to compile it into a single javascript file. However, when it is compiled, only one or the other typescript file has been compiled (it is not merging them, and probably overwriting one with the other). I will only see the methods from aClass OR bClass but not both. What settings are required to get the typescript module over 2 files merged and compiled into a single file?
Under Languages and Frameworks I have the following settings:
Command line options: --module amd --sourcemap $FileName$ --out script.js
Use output path: /public/Script
My typescript files are:
aClass.ts
module aModule{
export class aClass implements IInterface{
//Some methods
}
}
bClass.ts
module aModule{
export class bClass implements IInterface{
//Some methods
}
}
IInterface.ts
module aModule {
export interface IInterface {
}
}