Dependency management in npm package generated with Kotlin multiplatform

I’ve got an issue with dependency management when compiling Kotlin to JS as a npm package. How can I point dirs with dependencies that should be required in generated JS?

In gradle.build:

sourceSets {
    commonMain {
        dependencies {
            implementation 'org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:0.13.0'
            implementation 'com.soywiz.korlibs.krypto:krypto:1.9.0'
            implementation 'com.ionspin.kotlin:bignum:0.1.4-SNAPSHOT'
            implementation 'com.benasher44:uuid:0.0.5'
        }
    }
}

generates JS function called with listed arguments

(module.exports,
 require('kotlin'),
 require('kotlinx-serialization-kotlinx-serialization-runtime'),
 require('krypto-root-krypto'),
 require('bignum'),
 require('uuid'));

The question here should be more generic: what’s the Kotlin approach to manage the dependencies that are required during development and compilation and further needed within NPM environment? Kotlin produces code like require('krypto-root-krypto') in the generated JavaScript code, but nowhere adds these external dependencies to the NPM environment. How such cases should be dealt with?