I would like to make a third party library that users can install along with Next. It will need to watch for file changes in the users code and perform actions in response.
Obviously I can instruct the user to update their dev command to something like next dev && npx my-library but would greatly prefer a solution that starts up automatically (and without configuration) along with next dev
Note: In prod this will not be necessary, as the user's code will be known ahead of time, so it can just be done once before / during build