Commit 9eb9dea
committed
fix: build types from source instead of generated files
This module copies everything into the `dist` folder then builds types
from there. `multiformats` builds types from the source, then copies
moves the `types` folder into `dist`. The latter seems more predictable
and means things like mikeal/ipjs#14 don't
trip it up.
Also, doing `cp -a ... test/ dist/` instead of `cp -a ... test dist/`
meant that the contents of the test folder was copied into `dist` rather
than the test folder itself, which I guess was not intentional? Removing
the trailing slash means you don't need the extra `cp` command to copy the
examples folder afterwards.1 parent 5828444 commit 9eb9dea
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
0 commit comments