My require looks like this:
require('typescript-require')({
nodeLib: '../../app/typings/index.d.ts',
targetES5: true,
exitOnError: false
});
var LoginController = require('../../app/features/login/loginController.ts').LoginController;
But I get this error:
Error: ENOENT: no such file or directory, open '/Users/DSchultz/projects/hcp-portal/tmp/tsreq/app/features/login/loginController.js'
When I investigate what that directory looks like ...
ls tmp/tsreq/app/features/login/
I get these two subdirectories:
If I follow them down further I see that the file location is actually tmp/tsreq/app/features/login/features/login/loginController.js.