You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,27 @@ Awesome PDF viewer, that combines the best of others into one tool.
12
12
- Easy customized.
13
13
- Support by Expensify.
14
14
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
+
15
36
# Deploying
16
37
17
38
This repo automatically publishes to NPM when PRs are merged to main.
0 commit comments