ITADN

Add --watch flag for "publish mode"

#22Openroryabraham 创建于 2024-06-07
enhancement
R
roryabrahamcommented
### Feature request One downside of hard links is that if a source file in your dependency is not changed but deleted and re-created by the build process, then the hard link is broken. So the request I have is to _either_, set up a watch mode such that hard-links can be re-created if one of the source files disappears, _or_ create an option to use symlinks with the `publish` option. ### Motivations I noticed this because my changes appear correctly after running `npx link publish ~/react-native-live-markdown`, but if I change the source files then the hard-link is broken. So my situation is: 1. live changes happen in my node_modules if I don't use `publish` (i.e: use symlinks), but then the file structure is different and doesn't work as expected in my app 1. if I use `publish` then the file structure is as expected and it works, but changes to the source code of my dependency break symlinks (and it would be very complex to try and change the build process such that it just updates files in place rather than deleting and re-creating them). ### Alternatives not sure ### Additional context _No response_ ### Bugs are expected to be fixed by those affected by it - [X] I'm interested in working on this issue ### Compensating engineering work financially will speed up resolution - [ ] I'm willing to offer financial support
8 条评论