Alfred Lopez
09/16/2021, 7:40 PMkotlin {
js() {
useCommonJs()
nodejs()
binaries.executable()
}.compilations.all {
this.packageJson {
this.private = false
this.main = "index.js"
this.version = "0.1.0"
}
kotlinOptions.sourceMap = true
kotlinOptions.main = "index.js"
kotlinOptions.metaInfo = true
}
No matter what I do, the "main" entry in the resulting package.json always points to the generated JS file. What is the de facto way of modifying the package.json file, as well as packaging up the output for npm install?
Thanks!