I am facing a weird issue. In my (lets say) a.ts
I have -
/// <reference path="../typings/mocha/mocha.d.ts" />
/// <reference path="../typings/should/should.d.ts" />
import should = require('should');
import something_else = require('../something-else');
Now when I compile using command -
tsc -m commonjs --outDir "./build" "src/test/a.ts"
My generated javascript is not having require
for should
-
/// <reference path="../typings/mocha/mocha.d.ts" />
/// <reference path="../typings/should/should.d.ts" />
var service_manager = require('../routes/service-manager');
This seems like a bug in typescript compiler, but I may be doing it incorrectly. Or if there is some workaround, please share.