Hej, As I understand it KMP used yarn, under the h...
# gradle
o
Hej, As I understand it KMP used yarn, under the hood, to install dependencies? If so, it is possible to pass arguments? I need to increase the timeout. 🙂 Thanks
v
I guess with
Copy code
tasks.named<KotlinNpmInstallTask>("kotlinNpmInstall") {
    // ...
}
o
Oh.. that simple 🙂
THANKS!
v
Yeah, unfortunately it is not
tasks.kotlinNpmInstall { ... }
as the task is only registered conditionally it seems which means no type-safe accessor generated.
o
Ah. Do you know if there’s anyway to increase the network timeout?
Copy code
yarn config set network-timeout 600000 -g
v
I'm not too much into yarn / js But
config set -g
sounds like changing a global setting, so probably has nothing to do with a concrete project?
resp. should not be done by a concrete project
Maybe you can just set it in your ´.npmrc` file or something like that?
That is where I configured the internal Nexus repository to get the dependencies from
o
Hm, is that possible. I didn’t know that npmrc had support for timeouts. Will try. Thanks 🙂
v
I have no idea, just a guess
o
Your guess is better than mine 🙂
v
Possible 🙂
o
Hm it seems to work. I also created .yarnrc and added a few timeout settings. Yarn seems to be used under the hood?
I’ll come back in a few days when my team have tested it more thoroughly 🙂
👌 1
v
Yarn seems to be used under the hood?
Exact