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: v3.0.1
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: v3.0.2
Choose a head ref
  • 2 commits
  • 7 files changed
  • 1 contributor

Commits on Mar 21, 2017

  1. Copy the full SHA
    54128f2 View commit details
  2. 3.0.2

    blakeembrey committed Mar 21, 2017
    Copy the full SHA
    b6f4ed7 View commit details
Showing with 7 additions and 12 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/index.spec.ts
  3. +1 −1 src/index.ts
  4. +2 −0 tests/complex/index.ts
  5. +0 −5 tests/example.ts
  6. +1 −3 tests/tsconfig.json
  7. +1 −1 tests/with-jsx.tsx
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-node",
"version": "3.0.1",
"version": "3.0.2",
"preferGlobal": true,
"description": "TypeScript execution environment and REPL for node",
"main": "dist/index.js",
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -157,7 +157,7 @@ describe('ts-node', function () {
})

it('should pipe into an eval script', function (done) {
const cp = exec(`${BIN_EXEC} -p '(process.stdin as any).isTTY'`, function (err, stdout) {
const cp = exec(`${BIN_EXEC} -p 'declare var process: any\nprocess.stdin.isTTY'`, function (err, stdout) {
expect(err).to.not.exist
expect(stdout).to.equal('undefined\n')

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -579,7 +579,7 @@ function filterDiagnostics (diagnostics: TS.Diagnostic[], ignore: number[], disa
return []
}

return diagnostics.filter(x => ignore.indexOf(x.code))
return diagnostics.filter(x => ignore.indexOf(x.code) === -1)
}

/**
2 changes: 2 additions & 0 deletions tests/complex/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
declare function require (module: string): any

export function example () {
return require('./example')
}
5 changes: 0 additions & 5 deletions tests/example.ts

This file was deleted.

4 changes: 1 addition & 3 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"files": [
"../typings/index.d.ts"
]
"files": []
}
2 changes: 1 addition & 1 deletion tests/with-jsx.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Foo2 {
render() { return <div></div> }
render () { return <div></div> }
}