Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@
"dist",
"lib"
],
"homepage": "https://koajs.com"
"homepage": "https://github.com/koajs/koa",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check for repository field and full package.json structure
cat package.json | jq '{homepage, repository, bugs}'

Repository: koajs/koa

Length of output: 291


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== package.json excerpt ==\n'
sed -n '60,90p' package.json

printf '\n== previous package.json homepage/repository/bugs ==\n'
git show HEAD^:package.json 2>/dev/null | python3 - <<'PY'
import json, sys
data = json.load(sys.stdin)
print(json.dumps({k: data.get(k) for k in ("homepage", "repository", "bugs")}, indent=2))
PY

printf '\n== README references to website/repo ==\n'
rg -n "koajs\.com|github.com/koajs/koa|homepage|bugs" README* .github package.json

Repository: koajs/koa

Length of output: 1258


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== current package.json metadata ==\n'
python3 - <<'PY'
import json
with open('package.json') as f:
    data = json.load(f)
print(json.dumps({k: data.get(k) for k in ("homepage", "repository", "bugs")}, indent=2))
PY

printf '\n== previous package.json metadata ==\n'
git show HEAD^:package.json | python3 - <<'PY'
import json, sys
data = json.load(sys.stdin)
print(json.dumps({k: data.get(k) for k in ("homepage", "repository", "bugs")}, indent=2))
PY

printf '\n== website/repo references ==\n'
rg -n "koajs\.com|github.com/koajs/koa|homepage|bugs" README* .github package.json || true

Repository: koajs/koa

Length of output: 1123


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== package.json top-level metadata ==\n'
python3 - <<'PY'
import json
with open('package.json') as f:
    data = json.load(f)
keys = ["name", "homepage", "repository", "bugs", "author", "license"]
print(json.dumps({k: data.get(k) for k in keys}, indent=2))
PY

printf '\n== README / docs references to project website ==\n'
rg -n "koajs\.com|koa\.js|github.com/koajs/koa|homepage|bugs" README* docs* .github* package.json || true

printf '\n== package.json lines with website-related fields ==\n'
nl -ba package.json | sed -n '65,80p'

Repository: koajs/koa

Length of output: 1681


homepage should point to the project website, not the GitHub repo. bugs.url is fine, but homepage now sends npm users to https://github.com/koajs/koa instead of the site referenced in the docs (https://koajs.com).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 72, The package metadata currently sets homepage to the
GitHub repository, but it should point to the project website instead. Update
the homepage field in package.json to use the same site referenced in the docs,
keeping bugs.url unchanged; locate this in the top-level package metadata near
the homepage property.

"bugs": {
"url": "https://github.com/koajs/koa/issues"
}
}