Closed rryanrussell closed 4 years ago
Landed in migrate-mongo v7.2.0 🎉
Thank you for your contribution!
@rryanrussell , how to run migrate-mongo
through ts-node
?
@leshiple Wrote it a long time ago so I don't know if it will still work on the current version, but here's my package.json
script entry
"migrate": "node -r tsconfig-paths/register -r ts-node/register node_modules/migrate-mongo/bin/migrate-mongo.js"
Use it with npm run migrate up
etc
I use typescript and can run
migrate-mongo
throughts-node
, but the module file extension is hard-coded. This PR makes it a config option that defaults to.js
. The config option is used whencreate
is called and when getting migration directory listing.Checklist
npm test
passes and has 100% coverage