Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information