Skip to content

docs(cli): document that the Hardhat plugin does not clean by default - #5309

Open
DigitalA7 wants to merge 2 commits into
wevm:mainfrom
DigitalA7:docs/hardhat-clean-default
Open

DigitalA7 wants to merge 2 commits into
wevm:mainfrom
DigitalA7:docs/hardhat-clean-default

Conversation

@DigitalA7

Copy link
Copy Markdown

The Hardhat plugin docs say commands.clean defaults to ${packageManger} hardhat clean, but the plugin does not clean unless asked:

// packages/cli/src/plugins/hardhat.ts
const { build = true, clean = false, rebuild = true } = commands

The published @wagmi/cli 2.10.1 (dist/esm/plugins/hardhat.js) has the same line.

This PR:

  • documents the clean default as false, and says that true runs ${packageManager} hardhat clean and a string runs a custom command. This is in the JSDoc and in site/cli/api/plugins/hardhat.md;
  • fixes "Build Foundry project" to "Build Hardhat project" on the Hardhat page;
  • fixes the packageManger typo in those defaults.

Comments and docs only, so no changeset and no test. I did not run biome here, because pnpm tried to download a Node version my environment cannot reach. The web editor also added a final newline to hardhat.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_014cRzwuyJe8BGwXowsQ3kpw

DigitalA7 and others added 2 commits November 23, 2026 14:15
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@DigitalA7 is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1e3ea65

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

This branch has not been deployed

No deployments
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