Add ability to detect if theme is in "dev" mode #10
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
todo
Goal for next major release
Currently
astro-theme-provider
runs all code for both the author and user, but in some cases code only needs to be executed while authoring/developing a theme.astro-theme-provider
could solve this by checking for the existence of apackage.json
inside a playground directory. A theme package already has to be developed inside of a monorepo with a playground for type generation so checking for the existence of the playground'spackage.json
should be a safe way of validating that a theme is running in "dev" mode since this file wont be included in the final output of the package.The text was updated successfully, but these errors were encountered: