Skip to content

chore: exclude hardhat-ignition tests from build - #8425

Merged
kanej merged 1 commit into
v2from
improve-ignition-viem-build-hardhat-2
Jul 6, 2026
Merged

kanej merged 1 commit into
v2from
improve-ignition-viem-build-hardhat-2

Conversation

@kanej

@kanej kanej commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

This is a fix for the Hardhat 2 pnpm lock file CI check.

We avoid a dependency clash with ox by excluding the tests. This is working around quirks in changed module resolution that brought in a ts file inside ox unexpectedly, removing the tests from the build output avoids the issue.

The tests do not depend on the output into the dist folder, as they transpile at runtime.

Copilot AI review requested due to automatic review settings July 6, 2026 16:48
@changeset-bot

changeset-bot Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c14103e

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

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 adjusts the hardhat-ignition TypeScript project configuration to prevent test sources from being included in the compiled build output (dist), working around a pnpm lockfile CI/module-resolution dependency clash involving ox.

Changes:

  • Update packages/hardhat-ignition/tsconfig.json to exclude test, dist, and node_modules from the TypeScript compilation set.

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

Comment thread packages/hardhat-ignition/tsconfig.json Resolved
@kanej
kanej force-pushed the improve-ignition-viem-build-hardhat-2 branch from 3cac4a5 to 7de258c Compare July 6, 2026 17:05
Copilot AI review requested due to automatic review settings July 6, 2026 17:09
@kanej
kanej force-pushed the improve-ignition-viem-build-hardhat-2 branch from 7de258c to 7d3dd1a Compare July 6, 2026 17:09
We avoid a dependency clash with `ox` by excluding the tests. This is
working around quirks in changed module resolution that brought in a
`ts` file inside `ox` unexpectedly, removing the tests from the build
output avoids the issue.

The tests do not depend on the output into the `dist` folder, as they
transpile at runtime.

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

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

@kanej
kanej force-pushed the improve-ignition-viem-build-hardhat-2 branch from 7d3dd1a to c14103e Compare July 6, 2026 17:12
@kanej
kanej merged commit 41ed681 into v2 Jul 6, 2026
33 checks passed
@kanej
kanej deleted the improve-ignition-viem-build-hardhat-2 branch July 6, 2026 19:16
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants