Commit fffacf7
committed
fix: move typescript to peerDependencies to avoid version mismatch
When phpdoc-parser bundles its own typescript as a regular dependency,
consumers (e.g. Schema Generator) end up with two TypeScript instances.
AST nodes created by one version are incompatible with the printer from
another, causing runtime errors.
Also moves @types/node to devDependencies since it's only needed at
compile time.1 parent 7be7fd1 commit fffacf7
2 files changed
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments