Skip to content

Commit

Permalink
Remove TypeScript peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Sep 6, 2015
1 parent 825a4a0 commit 3414c75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

> TypeScript execution environment for node.
> TypeScript execution environment for node. **Works with `typescript@>=1.5`**.
## Installation

```
```sh
npm install -g typescript-node
```

TypeScript is defined as a `peerDependency`. You may have to install it alongside `typescript-node`.
# Make sure you install your TypeScript-compatible compiler.
npm install -g typescript
```

## Features

* Execute TypeScript with node
* Interactive REPL
* Execute (and print) TypeScript inline
* Supports Source Maps
* Supports source maps
* Supports `tsconfig.json`

## Usage
Expand All @@ -42,7 +43,13 @@ ts-node -p '"Hello, world!"'
**With Mocha**

```
mocha test.ts --require typescript-node/register
mocha test.ts --require typescript-node/register src/**/*.spec.ts
```

**With Tape:**

```
ts-node tape src/**/*.spec.ts
```

### Using TypeScript With Node Programmatically
Expand Down Expand Up @@ -72,7 +79,7 @@ ts-node --compiler ntypescript --configFile tsconfig.json --ignoreWarnings 2304

## Issues

* REPL currently does not work over each execution [#1](https://github.com/blakeembrey/typescript-node/issues/1)
* REPL is not working over each execution [#1](https://github.com/blakeembrey/typescript-node/issues/1)
* Code coverage information does not work with istanbul [#2](https://github.com/blakeembrey/typescript-node/issues/2)

## License
Expand Down
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"type": "git",
"url": "git://github.com/blakeembrey/typescript-node.git"
},
"typescript": {
"definition": "typescript-node.d.ts"
},
"keywords": [
"typescript",
"node",
Expand All @@ -61,9 +58,6 @@
"pre-commit": "^1.0.10",
"typescript": "^1.5.3"
},
"peerDependencies": {
"typescript": "^1.5.0"
},
"dependencies": {
"arrify": "^1.0.0",
"commander": "^2.8.1",
Expand Down
5 changes: 0 additions & 5 deletions typescript-node.d.ts

This file was deleted.

0 comments on commit 3414c75

Please sign in to comment.