Gradle kotlin js and npm dependency of a .tgz File

Hi I try to setup a gradle Project with a dependency to an npm Module which comes from an tgz file.

In a classic Project I have a package.json with following line:

“dependencies”: {
“someLib”: “other/somePath/someLib.tgz”,

But how do I have to use this in gradle ? In my build.gradle i have something like:

dependencies {
testImplementation ‘org.jetbrains.kotlin:kotlin-test-js’
implementation ‘org.jetbrains.kotlinx:kotlinx-html:0.7.2’
implementation ‘org.jetbrains.kotlinx:kotlinx-coroutines-core-js:1.4.2’
implementation npm(“snapsvg”, “0.5.1”)
implementation npm(“monaco-editor”, “0.22.0”)
implementation npm(“someLib”, “file:somePath/someLib.tgz”)
implementation project(’:runtime’)

But that does not work. How can I add an npm dependency (of an tgz File) ?

Thanks a lot