Pattern for when-file-is-updated-run-this-code #19220
Unanswered
alexbjorlig
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our vite (Sveltekit) project, we have this workflow.
A developer changes a +page.server.ts file (form action definitions).
Because of this, we need to update our OpenAPI specifications.
I did some experients, and patterns like this seem to be possible with plugins, for example like this.
But are there other patterns to achieve this?
One challenge I found with the above approach is that if I try to import code with
$lib
, then it breaks.Thanks in advance 👍
Beta Was this translation helpful? Give feedback.
All reactions