Closed jussiarpalahti closed 8 years ago
I have a use case of developing an app and a library separately.
However, reloader does not reload files when they change if they are not under src.
I tried using module level node_modules, since node and TypeScript support loading libraries from importing module's folder under node_modules folder.
However config reloader doesn't check there when finding imported paths, and I couldn't get that part working.
So, I have a structure like this:
/node_modules/[for regular libraries] /src/[my app files] /src/node_modules/my_library
Is there any way to either get cbuild to check also source folder's node_modules or config reloader to reload also regular node_modules files?
Thanks for letting me check out your current code. The issue was actually on this line of chokidar-socket-emitter. After commenting it out, it sends events for changes also in files under node_modules.
chokidar-socket-emitter
node_modules
I have a use case of developing an app and a library separately.
However, reloader does not reload files when they change if they are not under src.
I tried using module level node_modules, since node and TypeScript support loading libraries from importing module's folder under node_modules folder.
However config reloader doesn't check there when finding imported paths, and I couldn't get that part working.
So, I have a structure like this:
/node_modules/[for regular libraries] /src/[my app files] /src/node_modules/my_library
Is there any way to either get cbuild to check also source folder's node_modules or config reloader to reload also regular node_modules files?