mpetuska / npm-publish

Gradle plugin for NPM package publishing. Allows for arbitrary publishing as well as seamless integration with Kotlin JS/MPP plugins.
https://npm-publish.petuska.dev
Apache License 2.0
126 stars 10 forks source link

Could not determine the dependencies of task ':assembleJsPackage' #159

Closed MichaelOliveiraBx closed 9 months ago

MichaelOliveiraBx commented 9 months ago

Hi Thanks for this pluging :) I have a problem when I execute the command: assembleJsPackage I have the following error "Could not determine the dependencies of task ':assembleJsPackage'." I created a project little as possible, here is the stack

and here is my build.gradle.kts

plugins {
    kotlin("multiplatform") version "1.9.22"
    id("dev.petuska.npm.publish") version "3.4.2"
}

group = "me.michael"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

npmPublish {
    registries {
        register("npmjs") {
            uri.set(uri("--")) //
            authToken.set("obfuscated")
        }
    }
}

kotlin {
    js {
        binaries.executable()
        nodejs {

        }
    }
}

If I can help you find don't hesitate :)

mpetuska commented 9 months ago

Few things that come to mind:

mpetuska commented 9 months ago

Also you can use npmjs dsl shortcut to register central npm registry (it only needs the token configuration)

MichaelOliveiraBx commented 9 months ago

Thanks the issue is with the binaries.library() My bad and thanks for your reactivity :)