migrate-mongoose icon indicating copy to clipboard operation
migrate-mongoose copied to clipboard

Added minimal support for typescript

Open akprats33 opened this issue 7 years ago • 11 comments

akprats33 avatar May 26 '17 11:05 akprats33

@balmasi Can this be merged?

santiq avatar May 03 '18 19:05 santiq

I would also like to see this typescript support added

jamshally avatar Jun 01 '18 02:06 jamshally

i have a project in typescript using migrate-mongoose. Will really love to see this feature be added :-)

kalutheo avatar Mar 15 '19 13:03 kalutheo

is this in a "will not add" category or can it be merged? would help to not have to maintain a fork

chill-cod3r avatar Mar 20 '19 22:03 chill-cod3r

Hey @wolfejw86 @kalutheo @ahrnee you can use this fork that is actively maintained by me and @fernandolguevara Feel free to open any issue you want to.

https://github.com/whyline/migrate-mongoose

Is also published on NPM too, under the package name migrate-mongoose-typescript

https://www.npmjs.com/package/migrate-mongoose-typescript

santiq avatar Mar 20 '19 22:03 santiq

@balsami @akprats33 please resolve conflicts

tofixx avatar Sep 13 '19 12:09 tofixx

Hello, I created actual and much easer changes pull request (https://github.com/balmasi/migrate-mongoose/pull/58) for ability to use ts or any other extensions for migrations files.

tenorok avatar Feb 24 '20 20:02 tenorok

Are there any updates on this?

Marcinthedev avatar Sep 13 '20 11:09 Marcinthedev

@santiq hey bro how you doing?

I had a look to your library and I thought it was creating .ts migration files as it says it supports typescript. Our project is an API completly done with TS and we are looking for a TS library to handle our mongo database migrations with TS, of course.

Is anyone still having this same problem, did you resolve it? did you use another lib? did you make your own approach/implementation?

Thanks

mmejiadeveloper avatar Nov 12 '20 14:11 mmejiadeveloper

Hi @mmejiadeveloper I'm doing well thanks.

My recommendation got old, nowadays I'm using just migrate-mongo https://github.com/seppevs/migrate-mongo while it doesn't support typescript for writing migrations, it works pretty well.

santiq avatar Nov 12 '20 14:11 santiq

@mmejiadeveloper as I wrote in second comment before your, I made changes for opportunity using ts-files for migrations in https://github.com/balmasi/migrate-mongoose/pull/58 and although @balmasi doesn't give a reaction you can use branch from fork directly and I do the same.

tenorok avatar Nov 12 '20 19:11 tenorok