#Disable a compiler option for a folder?

5 messages · Page 1 of 1 (latest)

autumn isle
#

Hello!

I just discovered the compilerOption "noImplicitOverride" and instantly enabled it in my project, but my dear MikroOrm does not add that keyword when generating migrations, so I have a bunch of compilation errors because of that, now.

Is it possible to disable a compiler option for a specific folder?

Thank you.

molten marlin
#

you can't directly do that. you could split up the project using project references and use different configs for the sub-projects, but that might not be worth it

#

does MikroOrm have any way to customize the migration template? if so you could put the overrides in there yourself

#

i actually have a related problem with TypeORM migrations, but we ended up using a script to post-process them to apply some edits after generating

autumn isle
#

I see. I created a migration generator class to replace the one MikroOrm uses by default so I can add the override keyword.

Thank you!