From bcd808565a6ecbdc43e6a1a1c9d5c1955298d387 Mon Sep 17 00:00:00 2001 From: baxyz Date: Wed, 8 Apr 2026 20:48:09 +0200 Subject: [PATCH] =?UTF-8?q?chore(package):=20=F0=9F=94=A7=20add=20homepage?= =?UTF-8?q?=20field=20to=20package.json=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .template/bundle/package.json | 3 ++- .template/category/package.json | 3 ++- scripts/build/helpers/prepare-category-package-json.ts | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.template/bundle/package.json b/.template/bundle/package.json index f4c47ed..f2dd9ce 100644 --- a/.template/bundle/package.json +++ b/.template/bundle/package.json @@ -4,6 +4,7 @@ "description": "Complete collection of helpers4 utilities - all categories in one convenient package.", "author": "baxyz ", "license": "LGPL-3.0", + "homepage": "https://helpers4.dev/typescript/", "repository": { "type": "git", "url": "git+https://github.com/helpers4/typescript.git" @@ -24,4 +25,4 @@ "README.md", "meta/" ] -} +} \ No newline at end of file diff --git a/.template/category/package.json b/.template/category/package.json index 3eeed88..1c5a0d3 100644 --- a/.template/category/package.json +++ b/.template/category/package.json @@ -4,6 +4,7 @@ "description": "A set of helpers in TS/JS, compatible with tree-shaking, for {{category}}.", "author": "baxyz ", "license": "LGPL-3.0", + "homepage": "https://helpers4.dev/typescript/categories/{{category}}/", "repository": { "type": "git", "url": "git+https://github.com/helpers4/typescript.git" @@ -39,4 +40,4 @@ "engines": { "node": ">=18.0.0" } -} +} \ No newline at end of file diff --git a/scripts/build/helpers/prepare-category-package-json.ts b/scripts/build/helpers/prepare-category-package-json.ts index 035b999..fc3c5a9 100644 --- a/scripts/build/helpers/prepare-category-package-json.ts +++ b/scripts/build/helpers/prepare-category-package-json.ts @@ -33,6 +33,7 @@ export async function prepareCategoryPackageJson( version, name: (templatePackage.name as string)?.replace(/{{category}}/g, category), description: (templatePackage.description as string)?.replace(/{{category}}/g, category), + homepage: (templatePackage.homepage as string)?.replace(/{{category}}/g, category), keywords: (templatePackage.keywords as string[])?.flatMap((keyword: string) => keyword === "{{category}}" ? category : keyword === "{{methods}}" ? methods :