From 8b558e2d5cbb7a85a42c589b12fb745bdc006339 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Tue, 31 Dec 2024 18:38:33 -0300 Subject: [PATCH] feat: enable npm installer (#425) --- Cargo.toml | 8 +++++++- docs/pages/installation/binaries.mdx | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 77437d32..43560b1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -100,7 +100,7 @@ cargo-dist-version = "0.14.1" # CI backends to support ci = "github" # The installers to generate for each app -installers = ["shell", "powershell", "homebrew"] +installers = ["shell", "powershell", "npm", "homebrew"] # A GitHub repo to push Homebrew formulas to tap = "txpipe/homebrew-tap" # Target platforms to build apps for (Rust target-triple syntax) @@ -119,6 +119,12 @@ pr-run-mode = "plan" install-updater = false # The preferred Rust toolchain to use in CI (rustup toolchain syntax) rust-toolchain-version = "1.78.0" +# The archive format to use for windows builds (defaults .zip) +windows-archive = ".tar.gz" +# The archive format to use for non-windows builds (defaults .tar.xz) +unix-archive = ".tar.gz" +# A namespace to use when publishing this package to the npm registry +npm-scope = "@txpipe" [workspace.metadata.release] push = false diff --git a/docs/pages/installation/binaries.mdx b/docs/pages/installation/binaries.mdx index 7e56d138..0e4be55f 100644 --- a/docs/pages/installation/binaries.mdx +++ b/docs/pages/installation/binaries.mdx @@ -28,6 +28,14 @@ You can use Homebrew to install the latest version of Dolos in supported systems brew install txpipe/tap/dolos ``` +## Install via NPM + +You can use NPM to install the latest version of Dolos in supported systems (Mac / Linux) + +```sh +npm install @txpipe/dolos +``` + ## Download Binaries | File | Platform |