Skip to content

fix: add repository field for npm provenance#7

Merged
AntaresQAQ merged 1 commit into
mainfrom
fix-package-json
Dec 21, 2025
Merged

fix: add repository field for npm provenance#7
AntaresQAQ merged 1 commit into
mainfrom
fix-package-json

Conversation

@AntaresQAQ
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 21, 2025 13:07
@AntaresQAQ AntaresQAQ merged commit b082571 into main Dec 21, 2025
4 checks passed
@AntaresQAQ AntaresQAQ deleted the fix-package-json branch December 21, 2025 13:07
Copy link
Copy Markdown

Copilot AI left a comment

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 adds a repository field to the package.json to enable npm provenance support. This field helps npm link the package to its source repository and is required for npm's provenance attestation feature, which enhances supply chain security.

  • Added repository configuration with git type and GitHub URL

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

Comment thread package.json
"packageManager": "yarn@4.12.0",
"repository": {
"type": "git",
"url": "https://github.com/AntaresQAQ/unplugin-inline-const-enum"
Copy link

Copilot AI Dec 21, 2025

Choose a reason for hiding this comment

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

The repository URL should follow the standard npm format. According to npm best practices, the URL should either use the git+https:// protocol prefix or include the .git extension at the end to clearly indicate it's a git repository. The recommended format is: git+https://github.com/AntaresQAQ/unplugin-inline-const-enum.git

Suggested change
"url": "https://github.com/AntaresQAQ/unplugin-inline-const-enum"
"url": "git+https://github.com/AntaresQAQ/unplugin-inline-const-enum.git"

Copilot uses AI. Check for mistakes.
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.

2 participants