Skip to content

Commit 159e2e5

Browse files
committed
Update readme (#84)
Since TypeScript isn’t a peerDependency any more
1 parent 89ccd75 commit 159e2e5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Options
8686
- ```declarationFiles``` (boolean) - Generates corresponding .d.ts files.
8787
- ```noExternalResolve``` (boolean) - Do not resolve files that are not in the input. Explanation below.
8888
- ```sortOutput``` (boolean) - Sort output files. Usefull if you want to concatenate files (see below).
89-
- ```typescript``` (object) - Use a different version / fork of TypeScript (see below). You probably won't need this option, unless you know what you're doing!
89+
- ```typescript``` (object) - Use a different version / fork of TypeScript (see below). Use it like: `typescript: require('typescript')` or `typescript: require('my-fork-of-typescript')`
9090

9191
TypeScript version
9292
------------------
@@ -99,6 +99,13 @@ You can use a custom version of TypeScript. Add the version you want (1.4+) to y
9999
}
100100
}
101101
```
102+
And add this to your gulpfile:
103+
```javascript
104+
[...].pipe(ts({
105+
typescript: require('typescript')
106+
}));
107+
```
108+
You can use 1.5.0-alpha of TypeScript if you write this in your `package.json` file: `"typescript": "1.5.0-alpha"`
102109

103110
It's also possible to use a fork of TypeScript. Add an extra option to the options object like this:
104111
```javascript

0 commit comments

Comments
 (0)