-
-
Notifications
You must be signed in to change notification settings - Fork 197
Running app with locally installed plugin DOES NOT transpile the plugin TypeScript files #3378
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
@Fatme Do we have an idea from which version of NativeScript we have such behavior? I need this in order to specify that for versions less then this specific one, the users need to watch for the typescript changes explicitly. |
I'm not sure about the exact version of {N} CLI, we've checked that this behaviour is since 1.8 version of |
It looks like the typescript version is not the only thing that affects this behaviour. Check below for details: Versions:
Follow the steps:
Result: File is not transpiled. |
I also experience the problem that the Project: Versions:
|
Did you verify this is a real problem by searching the [NativeScript Forum]
I'm still not sure if this is a problem or expected behavior. I'm sure the CLI didn't work like this before.
Have in mind this clarification is quite important for us since it affects the plugin development workflow which we explicitly recommend for building plugins.
Tell us about the problem
Previously when I had to develop a plugin, I followed the guidelines of the NativeScript Plugin Seed stating that I need to run
tsc -watch
to watch for changes in the plugin and then run the plugin demo using thenpm run demo.android
ornpm run demo.ios
. This was enough to transpile the TypeScript when a do a change in the plugin and reload the demo app.What I noticed recently is that if I follow the workflow above, the app is restared twice. Stopping the command for watching for TypeScript changes "fixes" this. But what it means?
We need to know for certain what to recommend to our plugin authors.
Which platform(s) does your issue occur on?
Both
Please provide the following version numbers that your issue occurs with:
"tns-core-modules": "^3.1.0",
"tns-platform-declarations": "^3.0.0",
"android": "3.0.0",
"ios": "3.0.0"
package.json
file of yourproject)
Please tell us how to recreate the issue in as much detail as possible.
npm run build
npm run plugin.tscwatch
npm run demo.android
ornpm run demo.ios
yourplugin.common.ts
and watch how the change is applied to the appThe change will again be applied, but the app won't be restarted twice. Which means that only running the demo with
syncAllFiles
is now enough for the plugin TypeScript to be transpiled.The text was updated successfully, but these errors were encountered: