Import local npm package with gadle/kotlin
I want to import a local npm package into my kotlin project but I get the error Can't add "convert": invalid package version "".
File structure:
project
- js
- package.json
- convert.js
- src
- build.gradle.kts
My build.gradle.kts:
plugins {
kotlin("js")
}
dependencies {
implementation(npm("convert", "file:../../../../wikimarkup-converter/js"))
}
configureKotlinJs()
configurePublication()
My path is correct, because it gives me another error when it's any different.
My...