Skip to content

[Feature Request] Watch mode for type generation #925

Description

@Tinggaard

Description

A long-running command that continuously re-generates the typings for the env schema upon change.

Motivation

I am developing a CLI app, which does not have "dev server", instead I run tsc --watch, which helps me debug stuff live (apart from the LSP).

When I edit the .env.schema, these changes are not reflected though, when running

varlock run -- tsc --watch

Proposed Solution

varlock run --watch or varlock codegen --watch

Alternatives

Re-running the "dev" command every time .env.schema has changed.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions