docs: close the gaps an outside contributor falls into #36

Merged
chrnx merged 7 commits from chore/contributor-friction into develop 2026-08-11 14:41:03 +00:00
2 changed files with 12 additions and 2 deletions
Showing only changes of commit f200045fd7 - Show all commits

No files matched your search

+3 -2
View File
@@ -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 <projects@expressive-tea.io>",
"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": [
+9
View File
@@ -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 <projects@expressive-tea.io>');
});
});