KorGE

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Availability of korlibs libraries in npm registry

    Support
    2
    3
    59
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sujith Krishnan
      Sujith Krishnan last edited by Sujith Krishnan

      I am using korlib multiplatform libraries in my kotlin mpp project. The js code generated has dependencies (package.json) to below listed korlib js modules. However, all except one are not available in the npm global registry.

      "korio-root-korio": "1.10.2",
          "klock-root-klock": "1.10.3",
          "kds-root-kds": "1.10.6",
          "kmem-root-kmem": "1.10.1",
          "krypto-root-krypto": "1.11.1",
      

      Kotlin is generating the equivalent js library offline in a local folder. As the above libraries are not available in npm registry, I am manually copying the respective folders of each library to dependencies which is not the right way. Any thoughts how I can refer these korlibs lirbaries from npm/other source in package.json?

      1 Reply Last reply Reply Quote 0
      • soywiz
        soywiz last edited by

        May I ask you your use-case? Are you consuming them from a language other than Kotlin? Why can't you consume them from the official maven repositories?

        1 Reply Last reply Reply Quote 0
        • Sujith Krishnan
          Sujith Krishnan last edited by Sujith Krishnan

          My final output of the Kotlin multiplatform project is

          1. JS (node module) library
          2. JVM lib (jar).

          All good with projects which using my JVM jar as the pom XML have the korlibs (JVM jars) from maven. The issue is with JS projects using my js library.
          So, to answer your question, YES, I am consuming it from a NodeJS project, which expects the js version of these libraries to present in the npm registry.

          I can see a question already there for klock w.r.t this.
          https://github.com/korlibs/klock/issues/54

          1 Reply Last reply Reply Quote 0
          • First post
            Last post