Skip to content

Commit

Permalink
Publishing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet committed Nov 4, 2023
1 parent a80bf6a commit 7f53ca7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
21 changes: 13 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ plugins {
id("convention.publication")
id("org.jetbrains.kotlinx.kover") version "0.7.4"
id("com.google.devtools.ksp") version "1.9.10-1.0.13"
id("dev.petuska.npm.publish") version "3.4.1"
}

group = "me.nathanfallet.makth"
version = "1.2.0"
version = "1.2.1"

repositories {
mavenCentral()
Expand All @@ -23,13 +24,8 @@ kotlin {
}
}
js {
browser {
commonWebpackConfig {
cssSupport {
enabled.set(true)
}
}
}
binaries.library()
browser()
}
val hostOs = System.getProperty("os.name")
val isArm64 = System.getProperty("os.arch") == "aarch64"
Expand Down Expand Up @@ -67,3 +63,12 @@ dependencies {
add(it.name, "io.mockative:mockative-processor:2.0.1")
}
}

npmPublish {
readme.set(file("README.md"))
registries {
register("npmjs") {
uri.set("https://registry.npmjs.org")
}
}
}
4 changes: 2 additions & 2 deletions docs/getstarted/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Add the following to your `pom.xml` file;
<dependency>
<groupId>me.nathanfallet.makth</groupId>
<artifactId>makth-jvm</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
</dependency>
```

Expand All @@ -22,6 +22,6 @@ repositories {
}
dependencies {
implementation 'me.nathanfallet.makth:makth:1.2.0'
implementation 'me.nathanfallet.makth:makth:1.2.1'
}
```

0 comments on commit 7f53ca7

Please sign in to comment.