Skip to content

Commit 10481ce

Browse files
authored
📝 mention we don't bundle our own TypeScript
1 parent 78dd044 commit 10481ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ For use on the command line, use the flag `npm install -g`.
6060
* **tsify** supports the TypeScript compiler's `-p, --project` option which allows you to specify the path that will be used when searching for the `tsconfig.json` file. You can pass either the path to a directory or to the `tsconfig.json` file itself.
6161
* **tsify** supports the following extra options:
6262
* `--global` - This will set up **tsify** as a global transform. See the [Browserify docs](https://github.com/substack/node-browserify#btransformtr-opts) for the implications of this flag.
63-
* `--typescript` - This allows you to pass in a different TypeScript compiler, such as [NTypeScript](https://github.com/TypeStrong/ntypescript). Note that when using the API, you can pass either the name of the alternative compiler or a reference to it:
63+
* `--typescript` - By default we just do `require('typescript')` to pickup whichever version you installed. However, this option allows you to pass in a different TypeScript compiler, such as [NTypeScript](https://github.com/TypeStrong/ntypescript). Note that when using the API, you can pass either the name of the alternative compiler or a reference to it:
6464
* `{ typescript: 'ntypescript' }`
65-
* `{ typescript: require('typescript') }`, useful for when you want to use a different version of the official TypeScript compiler than the one packaged with tsify.
65+
* `{ typescript: require('ntypescript') }`
6666

6767
# Does this work with...
6868

0 commit comments

Comments
 (0)