Comparing version 2.1.0 to 2.1.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path_1 = require("path"); | ||
@@ -3,0 +4,0 @@ var repl_1 = require("repl"); |
#!/usr/bin/env node | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var child_process_1 = require("child_process"); | ||
@@ -4,0 +5,0 @@ var path_1 = require("path"); |
@@ -42,3 +42,3 @@ import { BaseError } from 'make-error'; | ||
export declare function parse(value: string | undefined): any; | ||
export declare function slash(value: string): string; | ||
export declare function normalizeSlashes(value: string): string; | ||
export interface Register { | ||
@@ -45,0 +45,0 @@ cwd: string; |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path_1 = require("path"); | ||
@@ -41,6 +47,6 @@ var fs_1 = require("fs"); | ||
exports.parse = parse; | ||
function slash(value) { | ||
function normalizeSlashes(value) { | ||
return value.replace(/\\/g, '/'); | ||
} | ||
exports.slash = slash; | ||
exports.normalizeSlashes = normalizeSlashes; | ||
function getTmpDir() { | ||
@@ -208,3 +214,3 @@ var hash = crypto.createHash('sha1') | ||
function shouldIgnore(filename, ignore, service) { | ||
var relname = slash(filename); | ||
var relname = normalizeSlashes(filename); | ||
return ignore.some(function (x) { return x.test(relname); }); | ||
@@ -241,3 +247,4 @@ } | ||
delete result.config.compilerOptions.declarationDir; | ||
var basePath = result.path ? path_1.dirname(result.path) : cwd; | ||
var configPath = result.path && normalizeSlashes(result.path); | ||
var basePath = configPath ? path_1.dirname(configPath) : normalizeSlashes(cwd); | ||
if (typeof ts.parseConfigFile === 'function') { | ||
@@ -247,3 +254,3 @@ return ts.parseConfigFile(result.config, ts.sys, basePath); | ||
if (typeof ts.parseJsonConfigFileContent === 'function') { | ||
return ts.parseJsonConfigFileContent(result.config, ts.sys, basePath, null, result.path); | ||
return ts.parseJsonConfigFileContent(result.config, ts.sys, basePath, null, configPath); | ||
} | ||
@@ -250,0 +257,0 @@ throw new TypeError('Could not find a compatible `parseConfigFile` function'); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var chai_1 = require("chai"); | ||
@@ -3,0 +4,0 @@ var child_process_1 = require("child_process"); |
{ | ||
"name": "ts-node", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"preferGlobal": true, | ||
@@ -57,3 +57,3 @@ "description": "TypeScript execution environment and REPL for node", | ||
"tslint": "^4.0.2", | ||
"tslint-config-standard": "^3.0.0", | ||
"tslint-config-standard": "^4.0.0", | ||
"typescript": "^2.1.4", | ||
@@ -71,3 +71,3 @@ "typings": "^2.0.0" | ||
"source-map-support": "^0.4.0", | ||
"tsconfig": "^5.0.2", | ||
"tsconfig": "^6.0.0", | ||
"v8flags": "^2.0.11", | ||
@@ -74,0 +74,0 @@ "xtend": "^4.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
121695
979
+ Addedstrip-bom@3.0.0(transitive)
+ Addedtsconfig@6.0.0(transitive)
- Removedany-promise@1.3.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedtsconfig@5.0.3(transitive)
Updatedtsconfig@^6.0.0