hfhbd
06/28/2023, 8:44 AMAdam S
06/28/2023, 8:48 AMnpm()
syntax, like this?
kotlin {
sourceSets {
jsMain {
dependencies {
implementation(npm("libpcre2x", "1.2.3"))
}
}
}
}
because you can pass a file, instead of the version
implementation(npm("libpcre2x", file("local_node_modules/libpcre2x")))
so you’d just need some jiggery pokery to fetch the JS module from the other subprojecthfhbd
06/28/2023, 8:50 AMhfhbd
06/28/2023, 8:51 AMAdam S
06/28/2023, 8:52 AMnpm()
and just adding a regular dependency, like this?
implementation(project(":some-other-subproject))
hfhbd
06/28/2023, 8:54 AMexternal
.