---
'@openstapps/backend': major
---

Migrate config system to cosmiconfig

Configs are now written using type-checked JavaScript

```js
// @ts-check

// This file is now type-safe just like TypeScript, but
// without the compilation step

/** @type {import('@openstapps/package').Type} */
const foo = {};
```

You can write config files in JavaScript, JSON, or other
cosmiconfig-supported formats.

The config files now are

- `backendrc.{js,json,...}`
- `elasticsearchrc.{js,json,...}`
- `prometheusrc.{js,json,...}`

You can also split them into multiple files,
as well as using the `markdown.js` helper in
`config/default/tools` to include markdown files
as text (see `config/f-u/about-pages`)
