Skip to content

Support typescript config modules #8

@mearns

Description

@mearns

As a user
I want to be able to write my config module in typescript
so that I can benefit from the type-checking and the published sirocco config type definitions.

Acceptance Criteria

  • Sirocco can load config from a file named .sirocco.ts, parsed as typescript including any other imported modules and using tsconfig.json if present.

References

The virtual-tsc project might be what we're looking for, but I'm not sure.

You might also start here: Using the Compiler API. There's also a lot of details here including what looks to be a CompilerHost implementation, which is the thing that gets files off the "filesystem", so that might be useful for keeping everything in memory if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions