Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TypeStrong/ts-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.0
Choose a base ref
...
head repository: TypeStrong/ts-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.1
Choose a head ref
  • 5 commits
  • 3 files changed
  • 2 contributors

Commits on Nov 10, 2016

  1. Copy the full SHA
    c4d3e8a View commit details

Commits on Nov 26, 2016

  1. Update TSLint

    blakeembrey committed Nov 26, 2016
    Copy the full SHA
    aa07292 View commit details

Commits on Dec 7, 2016

  1. Update to TypeScript 2.1

    blakeembrey committed Dec 7, 2016
    Copy the full SHA
    67e2981 View commit details

Commits on Dec 9, 2016

  1. Do not delete the stack from TSError

    Closes #248
    blakeembrey committed Dec 9, 2016
    Copy the full SHA
    eb2f9a4 View commit details
  2. v1.7.1

    blakeembrey committed Dec 9, 2016
    Copy the full SHA
    dd15f7f View commit details
Showing with 11 additions and 11 deletions.
  1. +9 −7 package.json
  2. +1 −3 src/index.ts
  3. +1 −1 typings.json
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-node",
"version": "1.7.0",
"version": "1.7.1",
"preferGlobal": true,
"description": "TypeScript execution environment and REPL for node",
"main": "dist/index.js",
@@ -15,8 +15,9 @@
],
"scripts": {
"lint": "tslint \"src/**/*.ts\"",
"build": "npm run build-ts",
"build-ts": "rm -rf dist && tsc",
"clean": "rimraf dist",
"tsc": "tsc",
"build": "npm run clean && npm run tsc",
"test-spec": "mocha dist/**/*.spec.js -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- \"dist/**/*.spec.js\" -R spec --bail",
"test": "npm run build && npm run lint && npm run test-cov",
@@ -50,11 +51,12 @@
"mocha": "^3.0.0",
"ntypescript": "^1.201507091536.1",
"proxyquire": "^1.7.2",
"rimraf": "^2.5.4",
"semver": "^5.1.0",
"tslint": "^3.13.0",
"tslint-config-standard": "^1.5.0",
"typescript": "^2.0.3",
"typings": "^1.0.4"
"tslint": "^4.0.2",
"tslint-config-standard": "^2.0.0",
"typescript": "^2.1.4",
"typings": "^2.0.0"
},
"dependencies": {
"arrify": "^1.0.0",
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -298,7 +298,7 @@ export function register (options: Options = {}): () => Register {

const service = ts.createLanguageService(serviceHost)

getOutput = function (code: string, fileName: string, lineOffset = 0) {
getOutput = function (code: string, fileName: string, lineOffset: number = 0) {
const output = service.getEmitOutput(fileName)

// Get the relevant diagnostics - this is 3x faster than `getPreEmitDiagnostics`.
@@ -647,8 +647,6 @@ export class TSError extends BaseError {
super(
`⨯ Unable to compile TypeScript\n${diagnostics.map(x => x.message).join('\n')}`
)

this.stack = '' // Hide the stack trace.
}

}
2 changes: 1 addition & 1 deletion typings.json
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
},
"globalDevDependencies": {
"chai": "registry:dt/chai#3.4.0+20160216071402",
"mocha": "registry:dt/mocha#2.2.5+20151023103246"
"mocha": "registry:dt/mocha#2.2.5+20161028141524"
},
"devDependencies": {
"semver": "registry:npm/semver#5.0.0+20160211003958"