Skip to content

Update package.json repository fields to npm monorepo standard - #87

Merged
hzhangxyz merged 2 commits into
mainfrom
copilot/update-package-json-repo
Dec 9, 2025
Merged

Update package.json repository fields to npm monorepo standard#87
hzhangxyz merged 2 commits into
mainfrom
copilot/update-package-json-repo

Conversation

Copilot AI commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

The repository fields in package.json files were using non-standard format without the git+https:// protocol prefix and missing the directory field for the monorepo package.

Changes

  • Root package.json: Updated repository URL to use git+https:// prefix
  • bnf/package.json: Updated repository URL to git+https:// prefix and added "directory": "bnf" field

This follows the npm official format for monorepo packages:

{
  "repository": {
    "type": "git",
    "url": "git+https://github.com/USTC-KnowledgeComputingLab/ds.git",
    "directory": "bnf"
  }
}
Original prompt

This section details on the original issue you should resolve

<issue_title>bnf下面的package.json的repo需要更新</issue_title>
<issue_description>chatgpt说:

对象形式(最推荐,最标准)
{
"repository": {
"type": "git",
"url": "https://github.com/username/repo.git"
}
}

说明:

type: 一般是 "git"

url: 你的仓库地址,推荐写成完整的 .git URL
(也可以写 SSH:git@github.com:username/repo.git)

也支持加 "directory" 用于 monorepo:

{
"repository": {
"type": "git",
"url": "https://github.com/username/repo.git",
"directory": "packages/my-lib"
}
}

看起来需要加个directory</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
@hzhangxyz
hzhangxyz marked this pull request as ready for review December 9, 2025 12:15
Copilot AI review requested due to automatic review settings December 9, 2025 12:15
Copilot AI changed the title [WIP] Update repository field in package.json Update package.json repository fields to npm monorepo standard Dec 9, 2025
Copilot AI requested a review from hzhangxyz December 9, 2025 12:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the repository field configuration in package.json files to follow npm best practices for monorepo structures. The changes add the git+https:// prefix to repository URLs and include a directory field for the monorepo package, aligning with npm's official documentation for proper repository metadata.

  • Updated repository URLs to use the explicit git+https:// protocol prefix
  • Added directory field to bnf/package.json to properly indicate its location within the monorepo structure

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Added git+https:// prefix to repository URL for explicit git protocol specification
bnf/package.json Added git+https:// prefix to repository URL and included directory field to properly identify the package location in the monorepo

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hzhangxyz
hzhangxyz merged commit aa7a692 into main Dec 9, 2025
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bnf下面的package.json的repo需要更新

3 participants