Jaakko Suutarla
08/16/2023, 7:11 PM...
val jsMain by getting {
dependencies {
...
implementation(npm("@my-private-namp", "5.3.2"))
}
}
...
- Kotlin: 1.9.0
- Gradle: 7.4
I've added .npmrc
and .yarnrc
files to the project root to configure access to our JFrog npm repository, but without success. Has anyone successfully integrated JFrog's npm repository into a Kotlin/JS Gradle project before? Any guidance or references would be highly appreciated. Thanks!Vampire
08/16/2023, 7:18 PMAdam S
08/16/2023, 7:27 PM.yarnrc
file is the documented solution, but judging from the open issue KT-33496 and this comment on KT-42747 it might not work?
If you search in $projectRootDir/build/js/
can you see if the custom file is picked up? If you run a build using --debug
(warning - it will dump a lot of logs, so it'd be a good idea to pipe the output into a file) and check the logs are there any messages about the custom NPM repo?Jaakko Suutarla
08/17/2023, 3:40 AMJaakko Suutarla
08/17/2023, 4:36 AM