Skip to content

Commit 1ef456b

Browse files
committed
add local testing info
1 parent cc147b9 commit 1ef456b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@ Awesome PDF viewer, that combines the best of others into one tool.
1212
- Easy customized.
1313
- Support by Expensify.
1414

15+
# Local testing
16+
17+
Actually, for testing changes locally, we need to connect `example` to the code from `src` directory (_**NPM** by default_).
18+
19+
Update a few fields in `example` directory:
20+
1. `package.json`:
21+
```diff
22+
-"react-fast-pdf": "^1.*"
23+
+"react-fast-pdf": "../src"
24+
```
25+
26+
2. `tsconfig.json`:
27+
```diff
28+
-"rootDir": "./src"
29+
+"rootDir": "../"
30+
```
31+
32+
3. Run `npm i` in the directory. It should update `package-lock.json`.
33+
34+
The final result has to look like in this [commit](https://github.com/Expensify/react-fast-pdf/pull/9/commits/29334948a936def7a1ba967aa632f6f5e951a3cb).
35+
1536
# Deploying
1637

1738
This repo automatically publishes to NPM when PRs are merged to main.

0 commit comments

Comments
 (0)