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

Commits on Dec 22, 2016

  1. Verified

    This commit was signed with the committer’s verified signature.
    IvanGoncharov Ivan Goncharov
    Copy the full SHA
    42e5c19 View commit details

Commits on Dec 27, 2016

  1. Copy the full SHA
    bcc1ff4 View commit details
  2. v1.7.3

    blakeembrey committed Dec 27, 2016
    Copy the full SHA
    b2e6990 View commit details
Showing with 10 additions and 2 deletions.
  1. +7 −0 README.md
  2. +1 −1 package.json
  3. +2 −1 src/bin.ts
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -102,6 +102,13 @@ require('ts-node').register({ /* options */ })
require('ts-node/register')
```

This will register the TypeScript compiler for "on the fly" compilation support of `.ts` and `.tsx` files during the run
of the script. From here you can use `require` to bring in modules from TypeScript files:

```js
var someModule = require('path_to_a_typescript_file');
```

## License

MIT
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.7.2",
"version": "1.7.3",
"preferGlobal": true,
"description": "TypeScript execution environment and REPL for node",
"main": "dist/index.js",
3 changes: 2 additions & 1 deletion src/bin.ts
Original file line number Diff line number Diff line change
@@ -27,7 +27,8 @@ v8flags(function (err, v8flags) {
'--throw-deprecation',
'--trace-deprecation',
'--allow-natives-syntax',
'--perf-basic-prof'
'--perf-basic-prof',
'--preserve-symlinks'
])

for (let i = 0; i < argv.length; i++) {