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 :