Skip to content

Commit de865da

Browse files
committed
docs: improve readme
1 parent d87e5a7 commit de865da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
66
[![Built with Spacemacs](https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg)](http://spacemacs.org)
77

8-
Transforms absolute imports to relative
8+
Transforms absolute imports to relative from `paths` in your tsconfig.json
99

1010
## Install
1111

@@ -20,6 +20,10 @@ Add it to _plugins_ in your _tsconfig.json_
2020
```json
2121
{
2222
"compilerOptions": {
23+
"baseUrl": "./",
24+
"paths": {
25+
"@utils/*": ["utils/*"]
26+
},
2327
"plugins": [{ "transform": "typescript-transform-paths" }]
2428
}
2529
}

0 commit comments

Comments
 (0)