Huakun Shen 7eca29a600
chore: add parse-github-url dependency and update GitHub parsing logic
- Added `parse-github-url` package as a dependency in `package.json`.
- Updated `parseGitHubRepoFromUri` function to utilize `parse-github-url` for improved URI parsing.
- Introduced `getGitHubRepoMetadata` function to fetch repository metadata using Octokit.
- Updated validation data structure to include optional `repoId`.
- Enhanced tests to cover new functionality and error handling for invalid URIs.
2025-03-24 01:43:59 -04:00

29 lines
633 B
JSON

{
"name": "@kksh/package-registry",
"type": "module",
"scripts": {
"test": "bun test --coverage",
"posttest": "verify-package-export verify"
},
"exports": {
"./jsr": "./src/jsr/index.ts",
"./npm": "./src/npm/index.ts",
"./github": "./src/github.ts",
"./models": "./src/models.ts"
},
"devDependencies": {
"@types/bun": "latest",
"@types/parse-github-url": "^1.0.3",
"verify-package-export": "^0.0.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@huakunshen/jsr-client": "^0.1.5",
"@kksh/api": "workspace:*",
"@octokit/rest": "^21.1.0",
"parse-github-url": "^1.0.3"
}
}