Skip to content

Commit 2fa1025

Browse files
committed
docs(README): add installtion guide
1 parent 9e61ae1 commit 2fa1025

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,18 @@ export var MyEnum;
5555

5656
which is ugly and waste a lot of bytes. Not only can't you take advantage of enum inlining, but it also wastes a lot of bytes. That's why this transform existed.
5757

58-
# Usage
58+
# Installation
5959

60-
## ttypescript
60+
```sh
61+
npm install ts-transformer-optimize-const-enum --save-dev
62+
```
63+
64+
# Usage
6165

6266
If you use vanilla TypeScript compiler, you can use this with [ttypescript](https://github.com/cevek/ttypescript) and compile with `ttsc` instead of `tsc`
6367

68+
## ttypescript
69+
6470
```js
6571
// tsconfig.json
6672
{

0 commit comments

Comments
 (0)