datocms / cli

Official CLI to interact with DatoCMS projects!
MIT License
7 stars 7 forks source link

Allow setting default flags in tsconfig-migrations flag in the datocms.config.json #10

Closed moshie closed 1 year ago

moshie commented 1 year ago

I am not sure if this exists already I couldn't find any documentation on it?

{
  "profiles": {
    "default": {
      "logLevel": "BODY",
      "migrations-tsconfig": "tsconfig.migrations.json",
      "migrations": {
        "directory": "./migrations",
        "modelApiKey": "schema_migration"
      }
    }
  }
}
stefanoverna commented 1 year ago

I'm not sure what you're asking @moshie :/

stefanoverna commented 1 year ago

We recently added a "migrations.tsconfig" configuration: https://github.com/datocms/cli/commit/97da23407c36da2edd2507affdc7fc48cd5444be is that what you're asking for?

moshie commented 1 year ago

Perfect this is exactly what I was looking for thanks :)