Skip to content

Commit 462442d

Browse files
authored
docs: clarify the TS option's defaults (ezolenko#316)
- "latest 2.x" is no longer accurate and quite outdated (we're on 4.x now), so just say it's the peerDep instead - @rollup/plugin-typescript calls the default a peerDep too: https://github.com/rollup/plugins/tree/master/packages/typescript#typescript - be more specific that you can pass in a different version or fork of TS (like `ttypescript`) through this option - follow-up to 8ec49c7 - auto-trim some whitespace-only lines - my editor does this automatically, and most of the README has trimmed whitespace anyway, so this keeps it consistent
1 parent 971c816 commit 462442d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ See [#108](https://github.com/ezolenko/rollup-plugin-typescript2/issues/108)
168168
* `useTsconfigDeclarationDir`: false
169169

170170
If true, declaration files will be emitted in the directory given in the tsconfig. If false, the declaration files will be placed inside the destination directory given in the Rollup configuration.
171-
171+
172172
Set to false if any other rollup plugins need access to declaration files.
173173

174-
* `typescript`: typescript module installed with the plugin
174+
* `typescript`: peerDependency
175175

176-
When typescript version installed by the plugin (latest 2.x) is unacceptable, you can import your own typescript module and pass it in as `typescript: require("path/to/other/typescript")`. Must be 2.0+, things might break if transpiler interfaces changed enough from what the plugin was built against.
176+
If you'd like to use a different version of TS than the peerDependency, you can import a different TypeScript module and pass it in as `typescript: require("path/to/other/typescript")`. Must be TS 2.0+, things might break if transpiler interfaces changed enough from what the plugin was built against.
177177

178178
* `transformers`: `undefined`
179179

0 commit comments

Comments
 (0)