-
-
Notifications
You must be signed in to change notification settings - Fork 197
Watch 'node_modules' directory when running tns run
#3092
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
Comments
Although I am OK with the |
Hey @otaran , |
Hi @rosen-vladimirov, thanks for mentioning Having a config file (or a CLI option) for specifying directories being watched will definitely be welcome, I could use it to watch only |
Hi, I need to just watch symlink modules. I'm on a mono-repo where some libs are on root and added to package.json by "@AwesomeLib": "file:../../libs/awesomelib", what are the chances to make only this watchable? Thank you |
I am having the same problem as @rui-cruz any plans to support whitelisting node_modules folders? |
Hi @rui-cruz @JonnyBGod, We are using the same workflow in our internal plugins (e.g. take a look at the Image Picker plugin structure). Ensure that you are passing the If your plugin is created from the official |
Please, provide the details below:
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes, there is an issue #2303 but it was closed without resolution 5 months ago.
Tell us about the problem
I have to restart my app each time I modify any node module that my app depends on, because it doesn't get synced to my app while
tns run
is still running.Which platform(s) does your issue occur on?
Both Android and iOS
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
See attached project.
my-lib-a
is a module which is specified as a dependency inpackage.json
and installed usingnpm install
. When you run the app usingtns run
and modify filemy-app/node_modules/my-lib-a/index.js
, your changes WILL NOT get synced to the running app. Because of that, it is inconvenient to develop library modules due to the fact that you have to restart your app each time you modify your library.my-lib-b
is a module which is symlinked undermy-app/app/tns_modules
. When you run the app usingtns run
and modify filemy-lib-b/index.js
, your changes WILL get synced to the running app. This is the workaround I am using in my apps, though I am concerned that it will get broken in the futurenativescript-cli
releases because it is an undocumented implementation-specific "feature".Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
See attached project.
The text was updated successfully, but these errors were encountered: