typescript-require
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -44,4 +44,5 @@ var vm = require('vm'); | ||
var tmpDir = path.join(process.cwd(), "tmp", "tsreq"); | ||
var jsname = path.join(tmpDir, path.basename(module.filename, ".ts") + ".js"); | ||
var relativeFolder = path.dirname(path.relative(process.cwd(), module.filename)); | ||
var jsname = path.join(tmpDir, relativeFolder, path.basename(module.filename, ".ts") + ".js"); | ||
if (!isModified(module.filename, jsname)) { | ||
@@ -58,3 +59,3 @@ return jsname; | ||
"--outDir", | ||
tmpDir, | ||
path.join(tmpDir, relativeFolder), | ||
libPath, | ||
@@ -61,0 +62,0 @@ options.nodeLib ? path.resolve(__dirname, "typings/node.d.ts") : null, |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"main": "./index.js", | ||
@@ -23,0 +23,0 @@ "repository": { |
@@ -9,5 +9,4 @@ require('..') | ||
var ship = require('./assets/ship'); | ||
console.log(ship) | ||
expect(ship).to.not.be.empty; | ||
}) | ||
}) |
60279
10
1202