Ian Stewart
03/30/2020, 3:07 PMIlya Goncharov [JB]
03/30/2020, 3:13 PMpackage.json
for yarn workspaces is for some details to run gradle with npm. And this package.json
is not ready to use in external NPM application.
So you can create your own package.json
with main
field referring on compiled fileIan Stewart
03/30/2020, 9:28 PM"kotlin": "../../packages_imported/kotlin/1.4.0-M1",
"kotlin-source-map-loader": "../../packages_imported/kotlin-source-map-loader/1.4.0-M1"
instead of
"kotlin": "1.4.0-M1",
"kotlin-source-map-loader": "1.4.0-M1"
Perhaps this should be done by default, in particular since kotlin-source-map-loader is not on npm?
I think source-map-loader should be published; then none of this copying of kotlin/kotlin-source-map-loader would be required. Would you like me to log these two items? (1, use local references, and 2, publish to npm)Ilya Goncharov [JB]
03/31/2020, 4:46 AMkotlin-source-map-loader
can be ok, it solves this particular issue, but in fact it doesn’t solve all problems, because you can depends on some other Kotlin/JS library, which is not in NPM (3rd party I mean), and you will have similar problem
But when this dependencies will be local paths, seems that it will not be the problem