db-migrate / node-db-migrate

Database migration framework for node
Other
2.32k stars 360 forks source link

Add support for migration .js files being ES modules (ESM) #784

Closed mo closed 2 years ago

mo commented 2 years ago

When "db-migrate create" is executed it created a new .js file that uses commonjs. However, my project uses ES modules (ESM) i.e. I have "type": "module" in my main package.json file. For this reason I'm interested in one of these two features:

wzrdtales commented 2 years ago

already fixed in https://github.com/db-migrate/node-db-migrate/pull/724 (you can use the current latest beta version without worrying)