Skip to content

Commit 7de258c

Browse files
committed
chore: exclude hardhat-ignition tests from build
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.
1 parent a82eb1c commit 7de258c

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎packages/hardhat-ignition/.eslintrc.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
extends: [`${__dirname}/../../config/eslint/eslintrc.js`],
33
parserOptions: {
4-
project: `${__dirname}/tsconfig.json`,
4+
project: `${__dirname}/tsconfig.test.json`,
55
sourceType: "module",
66
},
77
ignorePatterns: [".eslintrc.js"],

‎packages/hardhat-ignition/tsconfig.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
{ "path": "../hardhat-network-helpers" },
1313
{ "path": "../hardhat-verify" },
1414
{ "path": "../hardhat-ignition-ui/tsconfig.node.json" }
15-
]
15+
],
16+
"exclude": ["test", "dist", "node_modules"]
1617
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["dist", "node_modules"]
4+
}

0 commit comments

Comments
 (0)