Skip to content

Add a way to set project root to something else than current working directory #31

Description

@mb21

This might be needed if you're in a monorepo or for some other reason cannot cd to the root project dir before running Mastro.

tsc has the --rootDir and Astro the --root CLI option. We could do something like that for the serve and generate commands. Alternatively, we could also use an env variable for this, but that seems less explicit?

List of functions in Mastro that would need to read this out:

  • findFiles (used e.g. by the file-based router in loadFileBasedRoutes)
  • ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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