eknkc/typescript-require — pull request #9 by finalclass (2013-12-12 21:31:00+00:00)
Title: __dirname + mtime

This pull request includes:

- solved \_\_dirname problem (\_\_dirname was pointing to /tmp directory)
- added mtime checking for js and ts files. Now compilation takes place only if js modify time is less then then ts modify time. So, when there was no changes in ts file, typescript-require will not compile. This significantly improves development time.
- .ts files are now stored inside a project directory (PROJECT/tmp/tsreq/), the previous implementation with random directory creation in /tmp folder had to be replaced in order to implement mtime checking.