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.6.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.6.1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Oct 27, 2016

  1. Copy the full SHA
    a12cb44 View commit details
  2. v1.6.1

    blakeembrey committed Oct 27, 2016
    Copy the full SHA
    0a2cfb8 View commit details
Showing with 5 additions and 2 deletions.
  1. +1 −1 package.json
  2. +4 −1 src/index.ts
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": "1.6.0",
"version": "1.6.1",
"preferGlobal": true,
"description": "TypeScript execution environment and REPL for node",
"main": "dist/index.js",
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -139,7 +139,10 @@ export interface Register {
*/
export function register (options: Options = {}): () => Register {
const compiler = options.compiler || 'typescript'
const ignoreWarnings = arrify(options.ignoreWarnings || DEFAULTS.ignoreWarnings || []).map(Number)
const emptyFileListWarnings = [18002, 18003]
const ignoreWarnings = arrify(
options.ignoreWarnings || DEFAULTS.ignoreWarnings || []
).concat(emptyFileListWarnings).map(Number)
const disableWarnings = !!(options.disableWarnings == null ? DEFAULTS.disableWarnings : options.disableWarnings)
const getFile = options.getFile || DEFAULTS.getFile
const fileExists = options.fileExists || DEFAULTS.fileExists