Skip to content

Fix repository url in package.json#5

Merged
yosriady merged 3 commits into
mainfrom
chore/ci
May 3, 2026
Merged

Fix repository url in package.json#5
yosriady merged 3 commits into
mainfrom
chore/ci

Conversation

@yosriady
Copy link
Copy Markdown
Contributor

@yosriady yosriady commented May 3, 2026

No description provided.

yosriady and others added 3 commits May 3, 2026 20:50
Fixes CI failure where pnpm/action-setup couldn't determine which pnpm version to install.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Provenance verification requires repository.url in package.json to match the GitHub source.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the package.json file by adding the packageManager field and repository-related metadata. The review feedback identifies a likely typo in the specified pnpm version that could cause environment preparation failures and suggests using shorthand syntax for the repository field to reduce redundancy and simplify the configuration.

Comment thread package.json
{
"name": "@formo/cli",
"version": "0.2.0",
"packageManager": "pnpm@10.28.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The version 10.28.2 for pnpm appears to be a typo. pnpm 10 is a very recent major version and likely has not reached such a high patch number yet. An invalid version in the packageManager field will cause corepack to fail when attempting to prepare the environment. Please verify the intended version (e.g., 9.15.4 or 10.0.0).

Suggested change
"packageManager": "pnpm@10.28.2",
"packageManager": "pnpm@10.0.0",

Comment thread package.json
Comment on lines +6 to +13
"repository": {
"type": "git",
"url": "git+https://github.com/getformo/cli.git"
},
"homepage": "https://github.com/getformo/cli#readme",
"bugs": {
"url": "https://github.com/getformo/cli/issues"
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

For GitHub-hosted repositories, you can simplify the repository field using the shorthand syntax. Additionally, since the homepage and bugs URLs follow the standard GitHub pattern, they can be automatically inferred by npm, allowing you to remove these redundant fields and keep the package.json cleaner.

  "repository": "getformo/cli",

@yosriady yosriady merged commit 706dac4 into main May 3, 2026
5 checks passed
@yosriady yosriady deleted the chore/ci branch May 3, 2026 14:13
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.

1 participant