From 47366a459062f54ae457cf856e6ea953b0625756 Mon Sep 17 00:00:00 2001 From: "Yu, Wang" <727842003@qq.com> Date: Sat, 19 Sep 2026 08:15:18 +0800 Subject: [PATCH 1/2] fix: build distributable modules when installed as a Git dependency --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 49eb2856..b1942685 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "import", "ods", "parse", - "read", "spreadsheet", "tree-shakeable", "typescript", @@ -30,7 +29,9 @@ "type": "git", "url": "git+https://github.com/productdevbook/hucre.git" }, - "funding": "https://github.com/sponsors/productdevbook", + "funding": { + "url": "https://github.com/sponsors/productdevbook" + }, "bin": { "hucre": "./dist/cli.mjs" }, @@ -95,6 +96,7 @@ "test": "pnpm lint && pnpm typecheck && vitest run", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.cli.json", "release": "pnpm test && pnpm build && bumpp --commit --tag --push --all", + "prepare": "npm run build", "prepack": "pnpm build" }, "devDependencies": { From f7eb1ab2ae170c4ef5e4c0a08f593185d0a91910 Mon Sep 17 00:00:00 2001 From: "Yu, Wang" <727842003@qq.com> Date: Sat, 19 Sep 2026 08:17:21 +0800 Subject: [PATCH 2/2] chore: preserve package metadata while adding Git install preparation --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b1942685..fa2c83b7 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "import", "ods", "parse", + "read", "spreadsheet", "tree-shakeable", "typescript", @@ -29,9 +30,7 @@ "type": "git", "url": "git+https://github.com/productdevbook/hucre.git" }, - "funding": { - "url": "https://github.com/sponsors/productdevbook" - }, + "funding": "https://github.com/sponsors/productdevbook", "bin": { "hucre": "./dist/cli.mjs" },