Skip to content
Closed
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
2 changes: 1 addition & 1 deletion recaptcha_enterprise/demosite/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/googleapis/nodejs-recaptcha-enterprise.git"
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
Comment on lines 13 to 16
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve tooling support and correctly identify this package's location within the monorepo, it's a best practice to add a directory field to the repository object. Additionally, the url for a git repository should be prefixed with git+.

This helps tools like npm and other package consumers correctly locate the source code for this specific package. You can find more details in the npm documentation for package.json.

    "repository": {
        "type": "git",
        "url": "git+https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git",
        "directory": "recaptcha_enterprise/demosite/app"
    },

"dependencies": {
"@google-cloud/recaptcha-enterprise": "^5.5.0",
Expand Down
Loading