We are manually importing the run.ts file so we can extend it with some common behaviour. We are currently facing issues because we try to use "type": "module" in our package.json but this fails because the migrations run.ts still uses a require statement
Hello 👋 ,
We are manually importing the
run.ts
file so we can extend it with some common behaviour. We are currently facing issues because we try to use"type": "module"
in our package.json but this fails because the migrationsrun.ts
still uses arequire
statementhttps://github.com/datocms/cli/blob/732c8785319e5b50a2941a4cd9371c6634e7201a/packages/cli/src/commands/migrations/run.ts#L198
Could this be converted to an
await import
instead?