Hi, is there a way to package multi-module depende...
# javascript
m
Hi, is there a way to package multi-module dependencies to publish to npm registry? The only way I could do that in a Kotlin multiplatform project was navigating through
build/js
found in root folder and publishing each package individually by checking the generated package.json which have
workspaces
so I know how to navigate with my script through each package in workspaces and publish. But is there a better way to do it? I mean through gradle? Also when I checked the artifact generated for js per module, the package.json did not have dependencies with other modules in the same project which will be hard, that’s why I checked the
build/js
folder instead.
o
I thought it was easiest to use Lerna. However, I do not trigger Lerna from Gradle. https://github.com/lerna/lerna#readme
m
Thanks @Ola Adolfsson I tried it but it did not work with my multi module project. And also my 3rd party dependencies were not npm public registry so I had to publish them as well, so iterated over my packages in
workspaces
and published them