-
Notifications
You must be signed in to change notification settings - Fork 14
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
when installing from git it should run denali install #434
Comments
A few questions:
|
Thats my usual pattern if I encounter a bug in a dependency, fix it, and then want to use that fix while I wait for a PR to merge. Maybe I was not clear what I meant. I dont expect an I expect builds because thats how npm works. Things that are not in the bundle may get compiled. This is also true for native modules for example. So I expect in general that a |
Oh the hilarity that is npm hook script names 🤦♂️ In this scenario, Denali should handle what you are trying to accomplish automatically - if it's not, perhaps thats a bug. Basically, when Denali builds, it checks to see if any of the addons are:
If any of those cases are true, it compiles the addon on-the-fly as well, and will usually try to write the compiled result back to the addon's source directory. The result is, for git dependencies, that the first time you run If you are trying to fix an issue and want your addon code to recompile on changes or every time on a fresh build (rather than just on the first build and reusing the cached output), I suggest either symlinking or marking I'd like to avoid using We could try to do some kind of cache check - i.e. see if there is compiled output, and if so, skip the build and use that. But that is coarse grained logic at best (how do we know when the cached build result is stale?). If we continue optimizing down this path, the end result is that we end up replicating the logic above that is currently in the CLI, only we still at least get the startup penalty of starting the CLI a half-dozen times per |
probably it is. I'm talking about denali itself here. So inside a denali app |
When doing
I would expect
denali build
to be executed.I think this should be possible by using
prepare
instead ofprepublishOnly
insidepackage.json
.The text was updated successfully, but these errors were encountered: