How do I use jsr for Kotlin/JS? I tried `@jsr:regi...
# javascript
n
How do I use jsr for Kotlin/JS? I tried
@jsr:registry=https://npm.jsr.io
in
.npmrc
at project root (The same directory as gradle.properties) and
npm("@sevenc-nanashi/valuetree-ts", "@jsr:sevenc-nanashi__valuetree-ts@0.2.0")
in build.gradle. I managed to install using
kotlin.js.yarn=false
but I don't want to change this.
a
@Ilya Goncharov [JB] ^^
i
project root (The same directory as gradle.properties)
.npmrc
should be in root of your Gradle project. It is just for checking (because you may have several
gradle.properties
files in your every submodule)
npm(“@sevenc-nanashi/valuetree-ts”, “@jsr:sevenc-nanashi__valuetree-ts@0.2.0")
Is it correct version? Should it be just
npm("@sevenc-nanashi/valuetree-ts", "0.2.0")
? We just reuse yarn or npm, project is located in
build/js
, so you can check manually all
package.json
files
👀 1
n
Oh sorry I posted wrong specification, this is right one:
npm("@sevenc-nanashi/valuetree-ts", "npm:@jsr/sevenc-nanashi__valuetree-ts@0.2.0")
👍 1
i
Now I see that it is about https://jsr.io/docs/using-packages#adding-a-package So are you able to make it work with correct version?
n
With npm: Yes. But I'd like to keep yarn. (I'm trying to contribute to another person's project, so I don't want to change)
It started to work somehow with yarn... Anyway thank you for help!