Repository navigation
chore: exclude hardhat-ignition tests from build - #8425
Conversation
|
There was a problem hiding this comment.
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.jsonto excludetest,dist, andnode_modulesfrom the TypeScript compilation set.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3cac4a5 to
7de258c
Compare
7de258c to
7d3dd1a
Compare
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.
7d3dd1a to
c14103e
Compare
This is a fix for the Hardhat 2 pnpm lock file CI check.
We avoid a dependency clash with
oxby excluding the tests. This is working around quirks in changed module resolution that brought in atsfile insideoxunexpectedly, removing the tests from the build output avoids the issue.The tests do not depend on the output into the
distfolder, as they transpile at runtime.