-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Why does each demo have its own copy of @nativescript/android and @nativescript/ios? #11
Comments
Good question - there’s a postinstall hook in runtimes that last time I checked would cause issue when referenced but definitely try it and can see. It’s been awhile since I’ve tried referencing the runtimes like other dep’s. |
I checked the package.json for those @nativescript/android and @nativescript/v8-ios (or whatever it’s called) and didn’t find any post install scripts there. The only one I could find was for the iOS JSC runtime, here: https://github.com/NativeScript/ios-runtime/blob/master/build/npm/inspector_package.json |
I may be misunderstanding the repo setup, but maybe it’s no longer a problem with V8. I’ll try it out later. |
So I tried it out. I made the following changes: package.json configurations
|
Awesome! |
Looks like although iOS was happy hoisting it, Android wasn't. And maybe there's a difference between I got this error when trying I suspect CLI's fragile algorithm for determining runtime version, detailed in that issue, is the only reason that the runtimes can't currently be hoisted, and the only reason that they strictly have to be devDependencies rather than dependencies. |
I can understand the case for
@nativescript/webpack
(it has its own executable binary, so maybe can't be hoisted), but what about@nativescript/android
and@nativescript/ios
?The text was updated successfully, but these errors were encountered: