Yes, it is intended, there is task :publicPackageJson
, which produce package.json
with only non-file dependencies.
The problem with producing Kotlin/JS module dependencies as a non-file dependencies is that you can use dependency which is not provided by NPM registry.
The similar question is here