From 836bad8fa98e639fdb25fa2cf9952a403c0d0d69 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Thu, 21 May 2026 12:08:57 +0000 Subject: [PATCH] Add prepack build for publish Bump to 0.1.1 and run the build during npm pack/publish so dist is included. --- package-lock.json | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9c21cc4..f16de72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@bitboxswiss/bitbox-api", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@bitboxswiss/bitbox-api", - "version": "0.1.0", + "version": "0.1.1", "license": "Apache-2.0", "dependencies": { "@bufbuild/protobuf": "2.11.0" diff --git a/package.json b/package.json index d2061bf..605ab4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bitboxswiss/bitbox-api", - "version": "0.1.0", + "version": "0.1.1", "description": "A pure TypeScript library to interact with BitBox hardware wallets.", "license": "Apache-2.0", "type": "module", @@ -23,6 +23,7 @@ "node": ">=20" }, "scripts": { + "prepack": "npm run build", "build": "rm -rf dist && tsc -p tsconfig.build.json", "typecheck": "tsc --noEmit", "lint": "eslint .",