Comparing version 0.9.0 to 0.9.1
@@ -38,4 +38,7 @@ "use strict"; | ||
declaration: false, | ||
noEmit: false | ||
noEmit: false, | ||
outDir: "tmp" + Math.random().toString(36).substr(2) | ||
}); | ||
delete result.config.compilerOptions.out; | ||
delete result.config.compilerOptions.outFile; | ||
var basePath = fileName ? path_1.dirname(path_1.resolve(fileName)) : cwd; | ||
@@ -42,0 +45,0 @@ if (typeof ts.parseConfigFile === 'function') { |
@@ -5,2 +5,4 @@ "use strict"; | ||
var path_1 = require('path'); | ||
var semver = require('semver'); | ||
var ts = require('typescript'); | ||
var proxyquire = require('proxyquire'); | ||
@@ -38,2 +40,15 @@ var index_1 = require('./index'); | ||
}); | ||
if (semver.gte(ts.version, '1.8.0')) { | ||
it('should allow js', function (done) { | ||
child_process_1.exec([ | ||
BIN_EXEC, | ||
'-o "{\\\"allowJs\\\":true}"', | ||
'-p "import { main } from \'./tests/allow-js/run\';main()"' | ||
].join(' '), function (err, stdout) { | ||
chai_1.expect(err).to.not.exist; | ||
chai_1.expect(stdout).to.equal('hello world\n'); | ||
return done(); | ||
}); | ||
}); | ||
} | ||
it('should eval code', function (done) { | ||
@@ -40,0 +55,0 @@ child_process_1.exec(BIN_EXEC + " -e \"import * as m from './tests/module';console.log(m.example('test'))\"", function (err, stdout) { |
{ | ||
"name": "ts-node", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"preferGlobal": true, | ||
@@ -53,2 +53,3 @@ "description": "TypeScript execution environment and REPL for node", | ||
"proxyquire": "^1.7.2", | ||
"semver": "^5.1.0", | ||
"tslint": "^3.10.2", | ||
@@ -55,0 +56,0 @@ "tslint-config-standard": "^1.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
55924
738
2
10