Skip to content

Empty package with custom package register #67

Answered by mpetuska
raspberry-jenshen asked this question in Q&A
Discussion options

You must be logged in to vote

Hey. You're confusing gradle APIs for creating a new package (register) and modifying an existing package that the plugin autogenerates for your kotlin js targets (named). For your useCase, you have two options.

Option 1:
Continue using register api and add all your package files explicitly via files api https://npm-publish.petuska.dev/3.1/user-guide/configuration/package/#files
You can further automate it by adding kotlin js library distribution task as a dependency to package's assemble task so that kotlin stuff is built automatically whenever you try to assemble the package.

Option 2 (recommended):
Use named("your kotlin js rarget name") api and change npm package name via packageName …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@raspberry-jenshen
Comment options

@mpetuska
Comment options

@mpetuska
Comment options

Answer selected by mpetuska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #66 on November 26, 2022 21:34.