You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to just tell turbowatch to expect the default export of a package to be a config, or a function returning a promise of a config, and use that.
Motivation
I managed to make a pretty cool config that I'm gonna take with me with every single project I have.
That means I will have the same file in all of them:
Had to use an IIFE because top level awaits don't work currently with turbowatch
It would nice to not have to copy the same thing everywhere and just have the package installed.
This could be blocked by #16 if I can't import anything from turbowatch, or could be worked around if you export just the type of the configuration. (Currently I have extract it like this Parameters<typeof import('turbowatch').watch>[0])
This is really is just a nice-to-have, especially for me because I already have another project that automatically copies this file everywhere it's used.
The text was updated successfully, but these errors were encountered:
Desired Behavior
It would be nice to just tell
turbowatch
to expect the default export of a package to be a config, or a function returning a promise of a config, and use that.Motivation
I managed to make a pretty cool config that I'm gonna take with me with every single project I have.
That means I will have the same file in all of them:
It would nice to not have to copy the same thing everywhere and just have the package installed.
This could be blocked by #16 if I can't import anything from
turbowatch
, or could be worked around if you export just the type of the configuration. (Currently I have extract it like thisParameters<typeof import('turbowatch').watch>[0]
)This is really is just a nice-to-have, especially for me because I already have another project that automatically copies this file everywhere it's used.
The text was updated successfully, but these errors were encountered: