Open Lordfirespeed opened 1 month ago
Sorry, I didn't understand your specific intent. Could you provide the code snippets to help me understand your requirements better?
ping @Lordfirespeed
Sorry, thankyou for the ping.
My particular use-case was that I wanted to write files to the .velite
directory, but I didn't want to hard-code the .velite
directory name. I wanted access to this object of the resolved configuration, from the prepare
(invoked here) and complete
(invoked here) hooks.
Changing the signatures of the prepare
and complete
hooks to include a config
parameter, then passing in the resolved config
would suffice:
prepare?: (data: Result<T>, config: Config) => Promisable<void | false>
complete?: (data: Result<T>, config: Config) => Promisable<void>
Title.
I'd like to add some additional code-generation to my Velite setup, but finding it rather tricky to get the
output
object without hacky workarounds.