tj / node-migrate

Abstract migration framework for node
MIT License
1.54k stars 224 forks source link

ES Modules support #198

Closed Konard closed 1 year ago

Konard commented 1 year ago

Based on https://github.com/tj/node-migrate/pull/185/commits/7ba0ed65ff9ef0151434a4c9cb029552ebbf0483 by @Ti-webdev

wesleytodd commented 1 year ago

I think this looks good. I was a bit worried about the mix of callback with async/await as that can cause some pretty hard to debug issues, but I think I read through all the important parts and didn't see anything which would break. I will pull this down now and run through the tests and push a release asap.

Konard commented 1 year ago

@wesleytodd thanks.

I also tested it as git dependency, and it works with ES Modules scripts.

wesleytodd commented 1 year ago

Released in #199