-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watcher script is not compatible with yarn workspaces #23
Comments
starting the watcher with: |
Hi @jakubwolny, You can use the The reason why no webpack plugin exists yet is because I personally use rollup and haven't had the time yet to create one. The node process is currently the fallback for users who aren't using rollup ;) |
@jakubwolny as of |
oh wow! thank you for the update, I'll definitely try it |
After installing typesafe-i18n within one workspace, when you try to run the watcher:
node ./node_modules/typesafe-i18n/node/watcher.js
it does not work, since the files within node_modules are not physically located there (yarn does linking).
then of course I tried to run it in the directory above (project root), but when it watches entire project, not just single workspace, and paths are all wrong. Or I haven't found a way to tell watcher to specific dir to watch i.e.
node ./node_modules/typesafe-i18n/node/watcher.js --dir=client
.Also, from a perspective of a webpack user, I find it weird that I need to start another file watcher - I already have one (in webpack). So probably it's out of the scope of that issue, but having a webpack plugin could improve a Developer Experience.
So I haven't found any easy way to make it work within yarn workspace. btw. this is the most interesting i18n project I've seen in years I wanted to give a try.
The text was updated successfully, but these errors were encountered: