typescript-require
Advanced tools
Comparing version 0.2.8 to 0.2.9-1
@@ -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, |
{ | ||
"name": "typescript-require", | ||
"description": "Node.JS require extension to load TypeScript modules from JS", | ||
"homepage": "https://github.com/eknkc/typescript-require", | ||
"homepage": "https://github.com/theblacksmith/typescript-require", | ||
"author": { | ||
@@ -20,7 +20,7 @@ "name": "Ekin Koc", | ||
], | ||
"version": "0.2.8", | ||
"version": "0.2.9-1", | ||
"main": "./index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:eknkc/typescript-require.git" | ||
"url": "git@github.com:theblacksmith/typescript-require.git" | ||
}, | ||
@@ -27,0 +27,0 @@ "dependencies": { |
@@ -9,5 +9,4 @@ require('..') | ||
var ship = require('./assets/ship'); | ||
console.log(ship) | ||
expect(ship).to.not.be.empty; | ||
}) | ||
}) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
60297
10
1202
1