Commit f9732fc
fix: Change ts-node dependency to peer dependency
The DB-Migrate typescript plugin lists ts-node as a sub dependency
which causes it to be installed under its own node_modules directory
Since node allows multiple versions of the same library to be installed
and loaded at the same time, the ts-node installed under the plugin
has no access to any dependencies installed in the parent project
node_modules directory, even as cwd points to the proper place
So compilation fails
By moving the dependency to a peer dependency, the ts-node
dependency (if not already installed) is installed in the project
node_modules directory, and so now has access to all other
typescript dependencies
Signed-off-by: Daniel <[email protected]>1 parent 715efe7 commit f9732fc
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments