diff --git a/README.md b/README.md index 9273ede..dd56be1 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ A TypeScript plugin for db-migrate. Usage is very simple. Simply install this plugin via `npm install db-migrate-plugin-typescript` or if using yarn: `yarn add db-migrate-plugin-typescript` +This plugin has a peer dependency on ts-node as well. So you will need to install that as a dependency or dev-dependency as well, `npm install ts-node` or `yarn add ts-node` if using yarn. + The plugin will automatically resolve and compile any `.ts` files in your migrations directory, using your regular `tsconfig.json` diff --git a/package.json b/package.json index c65d33b..af868d8 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.1", "description": "A db-migrate plugin to enable TypeScript style migrations.", "main": "index.js", - "dependencies": { + "peerDependencies": { "ts-node": "^3.3.0" }, "devDependencies": {},