ipfs / ipfs/aegir

aegir should support `.aegir.ts` config file

Open
#943 1 comment 0 reactions 1 assignee Claimed by @SgtPooki View on GitHub
effort/days exp/intermediate kind/architecture kind/enhancement P2 status/ready topic/devexp
Dominant language
JavaScript
Stars
105
Forks
62
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Creating an `.aegir.cjs` or `.aegir.js` config file in a typescript repo is unintuitive and archaic. We should be able to save our aegir config as typescript in a file such as `.aegir.ts`

Without a typescript config file, a typescript repo requires workarounds such as importing only transpiled source, using ts-node/register, or other obtrusive methods.

**Describe the solution you'd like**
Aegir should support creating a config file in typescript `.aegir.ts`. Most modern tools and libraries support typescript config files today.

**Describe alternatives you've considered**
adding
```js
require('ts-node').register({
project: 'tsconfig.json',
})
```
to the top of the `.aegir.cjs` file will allow you to import typescript files, but this shouldn't be required.

**Additional context**
We should fully adopt and encourage typescript usage.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.