From f200045fd70c77680b6ce81acb8b76da85c4ab8e Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 11 Aug 2026 09:13:53 -0500 Subject: [PATCH] chore: put a project address in the package metadata author had no email and bugs had no address, so the only contact npm could show for a published package was a GitHub issues URL. bugs.email is a field npm actually reads and npm bugs surfaces, which makes it the right home for the catch-all. No security address here on purpose: npm has no field for one, an invented key is read by nothing, and the standard location is /.well-known/security.txt on the domain root, which this repo does not serve. Signed-off-by: Diego Resendez --- package.json | 5 +++-- test/package-metadata.test.ts | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 36a63a8..f9ef571 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,14 @@ "version": "26.8.0-beta.0", "description": "A zen, opinionated, type-safe framework \u2014 your API is a graph, not a middleware chain.", "license": "MIT", - "author": "green-tea contributors", + "author": "green-tea contributors ", "repository": { "type": "git", "url": "git+https://github.com/Expressive-Tea/green-tea.git" }, "bugs": { - "url": "https://github.com/Expressive-Tea/green-tea/issues" + "url": "https://github.com/Expressive-Tea/green-tea/issues", + "email": "projects@expressive-tea.io" }, "homepage": "https://green-tea.expressive-tea.io/docs/", "keywords": [ diff --git a/test/package-metadata.test.ts b/test/package-metadata.test.ts index 6790f86..a5f1301 100644 --- a/test/package-metadata.test.ts +++ b/test/package-metadata.test.ts @@ -10,8 +10,10 @@ interface PackageMetadata { }; readonly bugs?: { readonly url?: string; + readonly email?: string; }; readonly homepage?: string; + readonly author?: string; } const packageJson = JSON.parse(readFileSync(resolve(process.cwd(), 'package.json'), 'utf8')) as PackageMetadata; @@ -27,7 +29,14 @@ describe('package publication metadata', () => { it('links npm consumers to support and documentation', () => { expect(packageJson.bugs).toEqual({ url: 'https://github.com/Expressive-Tea/green-tea/issues', + email: 'projects@expressive-tea.io', }); expect(packageJson.homepage).toBe('https://green-tea.expressive-tea.io/docs/'); }); + + // A published package whose only contact is a GitHub URL is unreachable to anyone without + // an account, so the address is pinned here rather than left to drift back out. + it('gives npm an address to show for the package', () => { + expect(packageJson.author).toBe('green-tea contributors '); + }); });