Skip to content

Commit

Permalink
Update repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
Atif Afzal committed May 12, 2018
1 parent f856e2f commit 6975073
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ts-transform-react-jsx-source
# ts-transform-jsx-source

Adds source file, line number and column number to JSX elements.

Expand All @@ -15,7 +15,7 @@ Out
```js
<sometag
__source={{
fileName: 'this/file.tsx',
fileName: 'thisFile.tsx',
lineNumber: 20,
columnNumber: 11,
}}
Expand All @@ -27,19 +27,21 @@ Out
## Installation

```
yarn add -D ts-transform-react-jsx-source
yarn add -D ts-transform-jsx-source
```

## Usage

#### Webpack

```js
import tsTranformJsxSource from 'ts-transform-jsx-source';

// ...
{
loader: "awesome-typescript-loader",
options: {
getCustomTransformers: () => ({ before: [tsxSourceTransformer] })
getCustomTransformers: () => ({ before: [tsTranformJsxSource] })
}
}
// ...
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "ts-transform-react-jsx-source",
"name": "ts-transform-jsx-source",
"version": "1.0.0",
"description":
"Adds source file, line number and column number to JSX elements",
"main": "dist/index.js",
"repository": "[email protected]:atfzl/ts-transform-react-jsx-source.git",
"repository": "[email protected]:atfzl/ts-transform-jsx-source.git",
"author": "Atif Afzal <[email protected]>",
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit 6975073

Please sign in to comment.